Resolves: #2220936 - fix invalid escape sequence
This commit is contained in:
parent
6dae91a456
commit
3e3dddc4aa
24
asciidoc-table-separator.patch
Normal file
24
asciidoc-table-separator.patch
Normal file
@ -0,0 +1,24 @@
|
||||
From 34d5d9ffa005af9edbe8fde64b8fa6ccb33c8796 Mon Sep 17 00:00:00 2001
|
||||
From: Jerry James <loganjerry@gmail.com>
|
||||
Date: Fri, 7 Jul 2023 11:11:49 -0600
|
||||
Subject: [PATCH] Table separator may contain escapes
|
||||
|
||||
Signed-off-by: Jerry James <loganjerry@gmail.com>
|
||||
---
|
||||
asciidoc/asciidoc.py | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/asciidoc/asciidoc.py b/asciidoc/asciidoc.py
|
||||
index 0ccf24de..6d23a9de 100644
|
||||
--- a/asciidoc/asciidoc.py
|
||||
+++ b/asciidoc/asciidoc.py
|
||||
@@ -2908,7 +2908,7 @@ def validate(self):
|
||||
self.error('missing section: [tabletags-%s]' % t, halt=True)
|
||||
if self.separator:
|
||||
# Evaluate escape characters.
|
||||
- self.separator = ast.literal_eval('"' + self.separator + '"')
|
||||
+ self.separator = ast.literal_eval('r"' + self.separator + '"')
|
||||
# TODO: Move to class Tables
|
||||
# Check global table parameters.
|
||||
elif config.pagewidth is None:
|
||||
|
@ -1,6 +1,6 @@
|
||||
Name: asciidoc
|
||||
Version: 10.2.0
|
||||
Release: 4%{?dist}
|
||||
Release: 5%{?dist}
|
||||
Summary: Text based document generation
|
||||
|
||||
License: GPL-2.0-only
|
||||
@ -9,6 +9,8 @@ Source0: https://github.com/asciidoc-py/asciidoc-py/archive/%{version}/%{
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
Patch1: asciidoc-table-separator.patch
|
||||
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-pip
|
||||
BuildRequires: python3-setuptools
|
||||
@ -99,6 +101,9 @@ rm %{buildroot}/share/doc/{BUGS.adoc,CHANGELOG.adoc,INSTALL.adoc,README.md,dbla
|
||||
%dir %{python3_sitelib}/asciidoc/resources/filters/latex
|
||||
|
||||
%changelog
|
||||
* Mon Jul 10 2023 Josef Ridky <jridky@redhat.com> - 10.2.0-5
|
||||
- fix invalid escape sequence (#2220936)
|
||||
|
||||
* Thu Jun 15 2023 Python Maint <python-maint@redhat.com> - 10.2.0-4
|
||||
- Rebuilt for Python 3.12
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user