Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 Mar 2021 12:53:40 +0000 (UTC)
From:      "Danilo G. Baio" <dbaio@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r568387 - in head/textproc/po4a: . files
Message-ID:  <202103141253.12ECre2g080297@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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 );



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202103141253.12ECre2g080297>