Changed email-obfuscation default to no obfuscation.
- `writerEmailObfuscation` in `defaultWriterOptions` is now `NoObfuscation` - the default for the command-line `--email-obfuscation` option is now `none`. Closes #2988.
This commit is contained in:
parent
f04b26d481
commit
58d60b1c85
4 changed files with 5 additions and 15 deletions
2
README
2
README
|
@ -708,7 +708,7 @@ Options affecting specific writers
|
|||
`none` leaves `mailto:` links as they are. `javascript` obfuscates
|
||||
them using javascript. `references` obfuscates them by printing their
|
||||
letters as decimal or hexadecimal character references. The default
|
||||
is `javascript`.
|
||||
is `none`.
|
||||
|
||||
`--id-prefix=`*STRING*
|
||||
|
||||
|
|
|
@ -263,7 +263,7 @@ defaultOpts = Opt
|
|||
, optWrapText = WrapAuto
|
||||
, optColumns = 72
|
||||
, optFilters = []
|
||||
, optEmailObfuscation = JavascriptObfuscation
|
||||
, optEmailObfuscation = NoObfuscation
|
||||
, optIdentifierPrefix = ""
|
||||
, optIndentedCodeClasses = []
|
||||
, optDataDir = Nothing
|
||||
|
|
|
@ -399,7 +399,7 @@ instance Default WriterOptions where
|
|||
, writerDpi = 96
|
||||
, writerWrapText = WrapAuto
|
||||
, writerColumns = 72
|
||||
, writerEmailObfuscation = JavascriptObfuscation
|
||||
, writerEmailObfuscation = NoObfuscation
|
||||
, writerIdentifierPrefix = ""
|
||||
, writerSourceURL = Nothing
|
||||
, writerUserDataDir = Nothing
|
||||
|
|
|
@ -478,12 +478,7 @@ Blah
|
|||
<p><a href="/url/" title="title with "quotes" in it">URL and title</a></p>
|
||||
<p><a href="/url/" title="title with single quotes">URL and title</a></p>
|
||||
<p><a href="/url/with_underscore">with_underscore</a></p>
|
||||
<p><script type="text/javascript">
|
||||
<!--
|
||||
h='nowhere.net';a='@';n='nobody';e=n+a+h;
|
||||
document.write('<a h'+'ref'+'="ma'+'ilto'+':'+e+'" clas'+'s="em' + 'ail">'+'Email link'+'<\/'+'a'+'>');
|
||||
// -->
|
||||
</script><noscript>Email link (nobody at nowhere dot net)</noscript></p>
|
||||
<p><a href="mailto:nobody@nowhere.net">Email link</a></p>
|
||||
<p><a href="">Empty</a>.</p>
|
||||
<h2 id="reference">Reference</h2>
|
||||
<p>Foo <a href="/url/">bar</a>.</p>
|
||||
|
@ -510,12 +505,7 @@ document.write('<a h'+'ref'+'="ma'+'ilto'+':'+e+'" clas'+'s="em' + 'ail">'+'
|
|||
<li><a href="http://example.com/" class="uri">http://example.com/</a></li>
|
||||
<li>It should.</li>
|
||||
</ul>
|
||||
<p>An e-mail address: <script type="text/javascript">
|
||||
<!--
|
||||
h='nowhere.net';a='@';n='nobody';e=n+a+h;
|
||||
document.write('<a h'+'ref'+'="ma'+'ilto'+':'+e+'" clas'+'s="em' + 'ail">'+e+'<\/'+'a'+'>');
|
||||
// -->
|
||||
</script><noscript>nobody at nowhere dot net</noscript></p>
|
||||
<p>An e-mail address: <a href="mailto:nobody@nowhere.net">nobody@nowhere.net</a></p>
|
||||
<blockquote>
|
||||
<p>Blockquoted: <a href="http://example.com/" class="uri">http://example.com/</a></p>
|
||||
</blockquote>
|
||||
|
|
Loading…
Add table
Reference in a new issue