Comment #0 by bearophile_hugs — 2013-11-07T02:40:10Z
This is a minor priority enhancement request.
This is a small program:
///
void foo(char c = '\n') {}
///
void bar(char c = '\r') {}
void main() {}
If I compile it with -D it generates an HTML file that contains:
...
<dl><dt><big><a name="foo"></a>void <u>foo</u>(char <i>c</i> = '\x0a');
</big></dt>
<dd><br><br>
</dd>
<dt><big><a name="bar"></a>void <u>bar</u>(char <i>c</i> = '\x0d');
...
I suggest to show '\n' and '\r' there, to make the documentation more similar to the original code and a little more readable.
For an example of it see the online HTML documentation of std.stdio.byLine:
auto byLine(Terminator = char, Char = char)(KeepTerminator keepTerminator = KeepTerminator.no, Terminator terminator = '\x0a') if (isScalarType!Terminator);
Comment #1 by dlang-bot — 2022-03-24T13:02:15Z
@dkorpel created dlang/dmd pull request #13883 "Fix Issue 11463 - DDoc html to show the normal escaped ASCII chars" fixing this issue:
- Fix Issue 11463 - DDoc html to show the normal escaped ASCII chars
https://github.com/dlang/dmd/pull/13883
Comment #2 by dlang-bot — 2022-03-28T03:57:48Z
dlang/dmd pull request #13883 "Fix Issue 11463 - DDoc html to show the normal escaped ASCII chars" was merged into master:
- 837ae3d7aa514de34aae2c8dd68bd6b5ad2b578f by dkorpel:
Fix Issue 11463 - DDoc html to show the normal escaped ASCII chars
https://github.com/dlang/dmd/pull/13883