ipfire-3.x/asciidoc/patches/asciidoc-8.4.5-use-unsafe-m...

39 lines
1.6 KiB
Diff

diff -up asciidoc-8.4.5/asciidoc.py.default-unsafe asciidoc-8.4.5/asciidoc.py
--- asciidoc-8.4.5/asciidoc.py.default-unsafe 2009-05-25 22:12:38.000000000 -0400
+++ asciidoc-8.4.5/asciidoc.py 2009-07-16 02:27:09.000000000 -0400
@@ -1138,7 +1138,7 @@ class Document:
self.level = 0 # 0 => front matter. 1,2,3 => sect1,2,3.
self.has_errors = False # Set true if processing errors were flagged.
self.has_warnings = False # Set true if warnings were flagged.
- self.safe = True # Default safe mode.
+ self.safe = False # Default safe mode.
def update_attributes(self):
# Set implicit attributes.
if self.infile and os.path.exists(self.infile):
@@ -5205,8 +5205,8 @@ def execute(cmd,opts,args):
for o,v in opts:
if o in ('--help','-h'):
help_option = True
- if o == '--unsafe':
- document.safe = False
+ if o == '--safe':
+ document.safe = True
if o == '--version':
print('asciidoc %s' % VERSION)
sys.exit(0)
diff -up asciidoc-8.4.5/doc/asciidoc.1.default-unsafe asciidoc-8.4.5/doc/asciidoc.1
--- asciidoc-8.4.5/doc/asciidoc.1.default-unsafe 2009-05-26 02:38:36.000000000 -0400
+++ asciidoc-8.4.5/doc/asciidoc.1 2009-08-12 23:51:09.000000000 -0400
@@ -123,9 +123,9 @@ Auto\-number HTML article section titles
\fB\-a numbered\fR\.
.RE
.PP
-\fB\-\-unsafe\fR
+\fB\-\-safe\fR
.RS 4
-Disable safe mode\. Safe mode is enabled by default, disabling it is potentially dangerous\.
+Enable safe mode\. Safe mode is disabled by default\.
.RE
.PP
\fB\-v, \-\-verbose\fR