Wiki Roadmap Timeline Tickets New Ticket Source Search Help / Guide About Trac Login

Ticket #423 (new defect)

Opened 2 years ago

Last modified 1 year ago

[Bug] Can not generate documentation

Reported by: bioinfornatics Assigned to: ChristianK
Priority: major Milestone:
Component: unspecified Version: hg tip
Keywords: Cc: bioinfornatics@gmail.com

Description

/**
 * Authors: Jonathan MERCIER
 * License: GPLv3+
 * Bugs: none 
 */
import tango.io.Console;

void main(){
    Cout("Entrer votre nom: ")();
    char[] nom = Cin.get;
    Cout("Salut ")(nom).newline;
}

$ ldc -D -w input
$ cat input.html 
<html><head>
	<META http-equiv="content-type" content="text/html; charset=utf-8">
	<title>input</title>
	</head><body>
	<h1>input</h1>
	<!-- Generated by Ddoc from input.d -->
<br><br>

	<hr><small>Page generated by <a href="http://www.digitalmars.com/d/1.0/ddoc.html">Ddoc</a>. </small>
	</body></html>
[jonathan@jonathan D]$ v

Change History

08/17/10 21:32:22 changed by bioinfornatics

i think m->isDocFile is false line 791 of man.cpp

08/18/10 09:39:44 changed by bioinfornatics

for turn on doc file need start by string Ddoc see line 616-623 from dmd/module.c

08/18/10 09:45:23 changed by bioinfornatics

line 1015 in doc.c is never true because parser pase '\\n' and not '\n'

if (*p == '\n' && !summary && !namelen)
Copyright © 2008, LDC Development Team.