View mode: basic / threaded / horizontal-split · Log in · Help
March 15, 2012
[Issue 7715] New: DDoc eats $1, $2, $3 etc. inside d_code section
http://d.puremagic.com/issues/show_bug.cgi?id=7715

          Summary: DDoc eats $1, $2, $3 etc. inside d_code section
          Product: D
          Version: D2
         Platform: All
       OS/Version: All
           Status: NEW
         Severity: critical
         Priority: P2
        Component: DMD
       AssignedTo: nobody@puremagic.com
       ReportedBy: dmitry.olsh@gmail.com


--- Comment #0 from Dmitry Olshansky <dmitry.olsh@gmail.com> 2012-03-15 08:57:06 PDT ---
Example:

/**

&#36;1 &#36;2
---
string s = "$1$2 $ &#36;4";
---

*/
void foo(){}


Produces this (note that a lone $ was keept intact and &#36; doesn't work
inside pre block):

<html><head>
       <META http-equiv="content-type" content="text/html; charset=utf-8">
       <title>test</title>
       </head><body>
       <h1>test</h1>
       <!-- Generated by Ddoc from test.d -->
<br><br>
<dl><dt><big>void <u>foo</u>();
</big></dt>
<dd>&#36;1 &#36;2
<pre class="d_code">string s = <font color=red>" $ &amp;#36;4"</font>;
</pre>
<br><br>

</dd>
</dl>

       <hr><small>Page generated by <a
href="http://www.digitalmars.com/d/2.0/ddoc.html">Ddoc</a>. </small>
       </body></html>


Marking as critical because it destroys the replace format string in regex
article. But maybe, just maybe, I'm missing something.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
March 15, 2012
[Issue 7715] DDoc eats $1, $2, $3 etc. inside d_code section
http://d.puremagic.com/issues/show_bug.cgi?id=7715


Dmitry Olshansky <dmitry.olsh@gmail.com> changed:

          What    |Removed                     |Added
----------------------------------------------------------------------------
          Severity|critical                    |normal


--- Comment #1 from Dmitry Olshansky <dmitry.olsh@gmail.com> 2012-03-15 09:37:19 PDT ---
As there is a workaround via macro:
DOLLAR = $
I'm lowering importance, but the point is that I for one expect any D code
inside
---
...
---

to be protected from whatever macroses/DDoc specifics.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
December 02, 2012
[Issue 7715] DDoc eats $1, $2, $3 etc. inside d_code section
http://d.puremagic.com/issues/show_bug.cgi?id=7715



--- Comment #2 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2012-12-02 08:58:39 PST ---
https://github.com/D-Programming-Language/dmd/pull/1244

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
December 06, 2012
[Issue 7715] DDoc eats $1, $2, $3 etc. inside d_code section
http://d.puremagic.com/issues/show_bug.cgi?id=7715



--- Comment #3 from github-bugzilla@puremagic.com 2012-12-06 00:42:49 PST ---
Commit pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/ab5258d5bcedc55dbfeeb0fb4cc4d283f184c7fd
Merge pull request #1244 from AndrejMitrovic/Fix7656

[ddoc] Issue 7656 and 7715 - ddoc must escape special characters

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
December 06, 2012
[Issue 7715] DDoc eats $1, $2, $3 etc. inside d_code section
http://d.puremagic.com/issues/show_bug.cgi?id=7715


Dmitry Olshansky <dmitry.olsh@gmail.com> changed:

          What    |Removed                     |Added
----------------------------------------------------------------------------
            Status|NEW                         |RESOLVED
        Resolution|                            |FIXED


--- Comment #4 from Dmitry Olshansky <dmitry.olsh@gmail.com> 2012-12-06 07:23:42 PST ---
Thanks a bunch!

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
January 22, 2013
[Issue 7715] DDoc eats $1, $2, $3 etc. inside d_code section
http://d.puremagic.com/issues/show_bug.cgi?id=7715


Andrej Mitrovic <andrej.mitrovich@gmail.com> changed:

          What    |Removed                     |Added
----------------------------------------------------------------------------
            Status|RESOLVED                    |REOPENED
        Resolution|FIXED                       |


--- Comment #5 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2013-01-22 11:45:13 PST ---
Sorry, it was reverted due to a regression
(https://github.com/D-Programming-Language/dmd/pull/1244#issuecomment-11162068).
Will work on it again soon.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
July 02, 2013
[Issue 7715] DDoc eats $1, $2, $3 etc. inside d_code section
http://d.puremagic.com/issues/show_bug.cgi?id=7715



--- Comment #6 from Kenji Hara <k.hara.pg@gmail.com> 2013-07-01 18:11:43 PDT ---
(In reply to comment #5)
> Sorry, it was reverted due to a regression
> (https://github.com/D-Programming-Language/dmd/pull/1244#issuecomment-11162068).
> Will work on it again soon.

New pull request:
https://github.com/D-Programming-Language/dmd/pull/2287

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
July 07, 2013
[Issue 7715] DDoc eats $1, $2, $3 etc. inside d_code section
http://d.puremagic.com/issues/show_bug.cgi?id=7715



--- Comment #7 from github-bugzilla@puremagic.com 2013-07-07 08:24:04 PDT ---
Commit pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/b2a3ea72fd9f60cac38ba6008e139982649360ff
fix Issue 7715 - DDoc eats $1, $2, $3 etc. inside d_code section

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
July 07, 2013
[Issue 7715] DDoc eats $1, $2, $3 etc. inside d_code section
http://d.puremagic.com/issues/show_bug.cgi?id=7715


Kenji Hara <k.hara.pg@gmail.com> changed:

          What    |Removed                     |Added
----------------------------------------------------------------------------
          Keywords|                            |ddoc
            Status|REOPENED                    |RESOLVED
        Resolution|                            |FIXED


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Top | Discussion index | About this forum | D home