digitalmars.D.bugs - [Issue 363] New: XHTML support
- d-bugmail puremagic.com (19/19) Sep 23 2006 http://d.puremagic.com/issues/show_bug.cgi?id=363
- d-bugmail puremagic.com (6/6) Sep 23 2006 http://d.puremagic.com/issues/show_bug.cgi?id=363
- d-bugmail puremagic.com (6/6) Sep 23 2006 http://d.puremagic.com/issues/show_bug.cgi?id=363
- d-bugmail puremagic.com (9/9) Oct 04 2006 http://d.puremagic.com/issues/show_bug.cgi?id=363
- d-bugmail puremagic.com (41/41) Oct 12 2006 http://d.puremagic.com/issues/show_bug.cgi?id=363
- d-bugmail puremagic.com (9/9) Nov 25 2006 http://d.puremagic.com/issues/show_bug.cgi?id=363
http://d.puremagic.com/issues/show_bug.cgi?id=363
Summary: XHTML support
Product: D
Version: 0.167
Platform: PC
OS/Version: Linux
Status: NEW
Keywords: patch
Severity: enhancement
Priority: P2
Component: DMD
AssignedTo: bugzilla digitalmars.com
ReportedBy: thomas-dloop kuehne.cn
The attached patches add XHTML support to dgcc-r19 and dmd-0.167.
Changes:
* treat "<code />" correctly
* handle "<![CDATA[" and "]]>"
* support the file extension ".xhtml"
--
Sep 23 2006
http://d.puremagic.com/issues/show_bug.cgi?id=363 Created an attachment (id=31) --> (http://d.puremagic.com/issues/attachment.cgi?id=31&action=view) XHTML support for dgcc (subversion revision 19) --
Sep 23 2006
http://d.puremagic.com/issues/show_bug.cgi?id=363 Created an attachment (id=32) --> (http://d.puremagic.com/issues/attachment.cgi?id=32&action=view) XHTML support for DMD-0.167 --
Sep 23 2006
http://d.puremagic.com/issues/show_bug.cgi?id=363
bugzilla digitalmars.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
Incorporated DMD 0.168
--
Oct 04 2006
http://d.puremagic.com/issues/show_bug.cgi?id=363
thomas-dloop kuehne.cn changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |
The html.c source included in dmd-0.168/0.169 isn't the source used for
compiling dmd-0.168/0.169. Thus the dmd binaries don't support parsing of XHTML
source files.
html.c:529: int lineSepLength = isLineSeperator(p);
The implementation of isLineSeparator can't be found in DMD's frontend
sources(it was introduced into GDC-0.10's frontend for simplifying parsing).
Due to a typo, GDC calls this function isLineSeperator instead of
isLineSeparator.
/**
* identify DOS, Linux, Mac, Next and Unicode line endings
* 0 if this is no line separator
* >0 the length of the separator
* Note: input has to be UTF-8
*/
static int isLineSeparator(const unsigned char* p){
// Linux
if( p[0]=='\n'){
return 1;
}
// Mac & Dos
if( p[0]=='\r'){
return (p[1]=='\n') ? 2 : 1;
}
// Unicode (line || paragraph sep.)
if( p[0]==0xE2 && p[1]==0x80 && (p[2]==0xA8 || p[2]==0xA9)){
return 3;
}
// Next
if( p[0]==0xC2 && p[1]==0x85){
return 2;
}
return 0;
}
--
Oct 12 2006
http://d.puremagic.com/issues/show_bug.cgi?id=363
bugzilla digitalmars.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution| |FIXED
Incorporated DMD 0.175
--
Nov 25 2006









d-bugmail puremagic.com 