diff options
| author | root <root@alpha.trunkmasters.com> | 2026-06-12 19:09:37 -0500 |
|---|---|---|
| committer | root <root@alpha.trunkmasters.com> | 2026-06-12 19:09:37 -0500 |
| commit | b590c8d7572b727d565cc0b8ff660d43569845de (patch) | |
| tree | 06f7a4102ea4e845df8b66660f252920d52952f9 /app-text/code2html/files/code2html-0.9.1-scalar.patch | |
| parent | 24f9cbfc4c34fdb6a6e03311674414e881ceab47 (diff) | |
| download | baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.gz baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.xz baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.zip | |
Adding metadata
Diffstat (limited to 'app-text/code2html/files/code2html-0.9.1-scalar.patch')
| -rw-r--r-- | app-text/code2html/files/code2html-0.9.1-scalar.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/app-text/code2html/files/code2html-0.9.1-scalar.patch b/app-text/code2html/files/code2html-0.9.1-scalar.patch new file mode 100644 index 000000000000..b8f56f1a7d1a --- /dev/null +++ b/app-text/code2html/files/code2html-0.9.1-scalar.patch @@ -0,0 +1,20 @@ +--- a/code2html ++++ b/code2html +@@ -1357,7 +1357,7 @@ + my @lines = split ( /\n/, $_[0] ); + + my $nr = 0; +- my $lengthofnr = length(@lines); ++ my $lengthofnr = length(scalar(@lines)); + my $format = qq{<a name="$_[1]line%u">%${lengthofnr}u</a> %s\n} ; + join ('', map ( {$nr++; sprintf ( $format , $nr, $nr, $_ )} @lines)); + }, +@@ -1367,7 +1367,7 @@ + my @lines = split ( /\n/, $_[0] ); + + my $nr = 0; +- my $lengthofnr = length(@lines); ++ my $lengthofnr = length(scalar(@lines)); + my $format = qq{<a name="$_[1]line%u" href="#$_[1]line%u">%$ {lengthofnr}u</a> %s\n}; + join ('', map ( {$nr++; sprintf ( $format , $nr, $nr, $nr, $_ )} @lines)); + } |
