Skip to content

Commit b4d25ef

Browse files
authored
Merge pull request #3231 from metacpan/haarg/synhi-fix
Fix syntax highlighting alignment and =cut handling
2 parents 896fa65 + ed6e2f9 commit b4d25ef

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

root/static/js/brush-perl.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ function Brush() {
9595

9696
// don't capture the newline after =cut so that =cut\n\n=head1 will start a new pod section
9797
{
98-
regex: /(^|\n)=\w[\s\S]*?(\n=cut\s*(?=\n)|$)/g,
98+
regex: /(^|\n)=\w[\s\S]*?(\n=cut(?![a-zA-Z]).*)/g,
9999
css: 'comments'
100100
}, // pod
101101

root/static/less/syntaxhighlighter-theme.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
.line {
2424
white-space: pre;
25-
min-height: 1.2em;
25+
height: 1.2em;
2626
}
2727

2828
// main table and columns

0 commit comments

Comments
 (0)