Run cite handler first thing in phase 3.

* Run cite handler first thing in phase 3 so that ref-content
  is pulled out of the main token stream.  This effectively
  prevents unclosed/unbalanced tags within ref-tags from
  affecting the main stream.

* No change in parser tests.

* Fixes rt diffs on the following pages:
  1. en:Bandaid surgeries (zero rt diffs)
  2. en:Gondi bank (zero rt diffs)
  3. en:Ashland, oh (1 syntactic diff)
  The reverted commit (78989e8) had fixed rt-diffs in 1. above,
  hadn't changed diffs in 2. and introduced regressions in 3.

Change-Id: I6ad498d9d3711b71e7f427eea214acd10da8647b
This commit is contained in:
Subramanya Sastry 2012-11-06 12:47:42 -06:00
parent 6dcfba79fa
commit 5578953555

View file

@ -28,7 +28,10 @@ function Cite ( manager, options ) {
this.referencesRank, 'tag', 'references' ); this.referencesRank, 'tag', 'references' );
} }
Cite.prototype.rank = 2.15; // after QuoteTransformer, but before PostExpandParagraphHandler // Cite should be the first thing to run in pahse 3 so the <ref>-</ref>
// content tokens are pulled out of the token stream and dont pollute
// the main token stream with any unbalanced tags/pres and the like.
Cite.prototype.rank = 2.01; // after QuoteTransformer, but before PostExpandParagraphHandler
Cite.prototype.referencesRank = 2.6; // after PostExpandParagraphHandler Cite.prototype.referencesRank = 2.6; // after PostExpandParagraphHandler
//Cite.prototype.rank = 2.6; //Cite.prototype.rank = 2.6;