Skip to content

Commit

Permalink
textproc/po4a: Add patch to fix Asciidoc issue
Browse files Browse the repository at this point in the history
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
dbaio committed Mar 14, 2021
1 parent 1963c28 commit 6f335c7
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions textproc/po4a/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
PORTNAME= po4a
DISTVERSIONPREFIX= v
DISTVERSION= 0.63
PORTREVISION= 1
CATEGORIES= textproc perl5

MAINTAINER= dbaio@FreeBSD.org
Expand Down
15 changes: 15 additions & 0 deletions textproc/po4a/files/patch-lib_Locale_Po4a_AsciiDoc.pm
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 );

0 comments on commit 6f335c7

Please sign in to comment.