… | |
… | |
1412 | |
1412 | |
1413 | # create single paragraphs (very hackish) |
1413 | # create single paragraphs (very hackish) |
1414 | s/(?<=\S)\n(?=\w)/ /g; |
1414 | s/(?<=\S)\n(?=\w)/ /g; |
1415 | |
1415 | |
1416 | # compress some whitespace |
1416 | # compress some whitespace |
1417 | 1 while s/\s*\n\s*\n\s*/\n/; |
1417 | s/\s+\n/\n/g; # ws line-ends |
1418 | |
1418 | s/\n\n+/\n/g; # double lines |
1419 | s/^\s+//; |
1419 | s/^\n+//; # beginning lines |
1420 | s/\s+$//; |
1420 | s/\n+$//; # ending lines |
1421 | |
1421 | |
1422 | $_ |
1422 | $_ |
1423 | } |
1423 | } |
1424 | |
1424 | |
1425 | sub hintmode { |
1425 | sub hintmode { |