]> git.ipfire.org Git - people/arne_f/ipfire-3.x.git/blob - asciidoc/patches/asciidoc-8.4.5-use-unsafe-mode-by-default.patch
Merge remote-tracking branch 'arne_f/autoconf'
[people/arne_f/ipfire-3.x.git] / asciidoc / patches / asciidoc-8.4.5-use-unsafe-mode-by-default.patch
1 diff -up asciidoc-8.4.5/asciidoc.py.default-unsafe asciidoc-8.4.5/asciidoc.py
2 --- asciidoc-8.4.5/asciidoc.py.default-unsafe 2009-05-25 22:12:38.000000000 -0400
3 +++ asciidoc-8.4.5/asciidoc.py 2009-07-16 02:27:09.000000000 -0400
4 @@ -1138,7 +1138,7 @@ class Document:
5 self.level = 0 # 0 => front matter. 1,2,3 => sect1,2,3.
6 self.has_errors = False # Set true if processing errors were flagged.
7 self.has_warnings = False # Set true if warnings were flagged.
8 - self.safe = True # Default safe mode.
9 + self.safe = False # Default safe mode.
10 def update_attributes(self):
11 # Set implicit attributes.
12 if self.infile and os.path.exists(self.infile):
13 @@ -5205,8 +5205,8 @@ def execute(cmd,opts,args):
14 for o,v in opts:
15 if o in ('--help','-h'):
16 help_option = True
17 - if o == '--unsafe':
18 - document.safe = False
19 + if o == '--safe':
20 + document.safe = True
21 if o == '--version':
22 print('asciidoc %s' % VERSION)
23 sys.exit(0)
24 diff -up asciidoc-8.4.5/doc/asciidoc.1.default-unsafe asciidoc-8.4.5/doc/asciidoc.1
25 --- asciidoc-8.4.5/doc/asciidoc.1.default-unsafe 2009-05-26 02:38:36.000000000 -0400
26 +++ asciidoc-8.4.5/doc/asciidoc.1 2009-08-12 23:51:09.000000000 -0400
27 @@ -123,9 +123,9 @@ Auto\-number HTML article section titles
28 \fB\-a numbered\fR\.
29 .RE
30 .PP
31 -\fB\-\-unsafe\fR
32 +\fB\-\-safe\fR
33 .RS 4
34 -Disable safe mode\. Safe mode is enabled by default, disabling it is potentially dangerous\.
35 +Enable safe mode\. Safe mode is disabled by default\.
36 .RE
37 .PP
38 \fB\-v, \-\-verbose\fR