svn commit: r568387 - in head/textproc/po4a: . files

Danilo G. Baio dbaio at FreeBSD.org
Sun Mar 14 12:53:41 UTC 2021


Author: dbaio
Date: Sun Mar 14 12:53:40 2021
New Revision: 568387
URL: https://svnweb.freebsd.org/changeset/ports/568387

Log:
  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:	https://github.com/mquinson/po4a/pull/298

Added:
  head/textproc/po4a/files/patch-lib_Locale_Po4a_AsciiDoc.pm   (contents, props changed)
Modified:
  head/textproc/po4a/Makefile

Modified: head/textproc/po4a/Makefile
==============================================================================
--- head/textproc/po4a/Makefile	Sun Mar 14 12:48:32 2021	(r568386)
+++ head/textproc/po4a/Makefile	Sun Mar 14 12:53:40 2021	(r568387)
@@ -4,6 +4,7 @@
 PORTNAME=	po4a
 DISTVERSIONPREFIX=	v
 DISTVERSION=	0.63
+PORTREVISION=	1
 CATEGORIES=	textproc perl5
 
 MAINTAINER=	dbaio at FreeBSD.org

Added: head/textproc/po4a/files/patch-lib_Locale_Po4a_AsciiDoc.pm
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/textproc/po4a/files/patch-lib_Locale_Po4a_AsciiDoc.pm	Sun Mar 14 12:53:40 2021	(r568387)
@@ -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 );


More information about the svn-ports-head mailing list