@@ -51,8 +51,13 @@ cutMatch(line, match, {startOffset = 0, endOffset = 0, glue = ""}) {
5151}
5252
5353cutRegexp (line, re, {startOffset = 0 , endOffset = 0 , glue = "" }) {
54- return cutMatch (line, re.firstMatch (line),
55- startOffset: startOffset, endOffset: endOffset, glue: glue);
54+ return cutMatch (
55+ line,
56+ re.firstMatch (line),
57+ startOffset: startOffset,
58+ endOffset: endOffset,
59+ glue: glue,
60+ );
5661}
5762
5863/// Removes the rest of [line] starting from the beginning of the
@@ -298,7 +303,7 @@ class HashAnalyzer {
298303 static const PENDING_IS_SECTION = 1 ;
299304 static const PENDING_IS_SUBSECTION = 2 ;
300305 static const PENDING_IS_SUBSUBSECTION = 3 ;
301- static const PENDING_IS_PARAGRAPH = 1 ;
306+ static const PENDING_IS_PARAGRAPH = 4 ;
302307
303308 var lineNumber = 0 ;
304309 var pendingSectioning = PENDING_IS_NONE ;
@@ -509,8 +514,10 @@ addHashMarks(lines, hashEvents, listSink) {
509514 var start = hashEvent.startLineNumber;
510515 var end = hashEvent.endLineNumber;
511516 final hashValue = computeHashString (lines, start + 1 , end, listSink);
512- lines[start] =
513- lines[start].replaceAll (latexArgumentRE, "{" + hashValue + "}" );
517+ lines[start] = lines[start].replaceAll (
518+ latexArgumentRE,
519+ "{" + hashValue + "}" ,
520+ );
514521 listSink.write (" $hashValue \n " );
515522 } else if (hashEvent is HashLabelEvent ) {
516523 listSink.write ("${hashEvent .labelText }\n " );
0 commit comments