-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
textproc/po4a: Add patch to fix Asciidoc issue
Don't split in attributes include:: and ifeval:: lines. This fix an issue in the new FreeBSD translation workflow. Obtained from: mquinson/po4a#298 git-svn-id: svn+ssh://svn.freebsd.org/ports/head@568387 35697150-7ecd-e111-bb59-0022644237b5
- Loading branch information
Showing
2 changed files
with
16 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# https://github.com/mquinson/po4a/pull/298 | ||
# Asciidoc: Don't split in attributes include:: and ifeval:: lines | ||
--- lib/Locale/Po4a/AsciiDoc.pm.orig 2021-02-22 16:53:34 UTC | ||
+++ lib/Locale/Po4a/AsciiDoc.pm | ||
@@ -771,6 +771,10 @@ sub parse { | ||
and ( defined( $self->{type} ) and ( $self->{type} eq "Table" ) ) ) | ||
{ | ||
$paragraph .= $line . "\n"; | ||
+ } elsif ( ( $macroname eq "include" || $macroname eq "ifeval" ) | ||
+ and ( $macrotype eq '::' ) ) | ||
+ { | ||
+ $self->pushline( $line . "\n" ); | ||
} else { | ||
if ( $macrotype eq '::' ) { | ||
do_paragraph( $self, $paragraph, $wrapped_mode ); |