Skip to content

Commit

Permalink
Use <div> instead of <p> for Ddoc module summary/description
Browse files Browse the repository at this point in the history
Ddoc generates <p> tags automatically from line breaks,
which caused nested <p> tags, which are not allowed.
  • Loading branch information
CyberShadow committed Jan 24, 2015
1 parent e8df859 commit 65f0e01
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions css/style.css
Expand Up @@ -146,6 +146,11 @@ h3.download
font-weight: bold;
}

div.summary, div.description
{
margin: 1.12em 0;
}

h1, h2, h3, h4, h5, h6
{
font-family: Georgia, "Times New Roman", Times, serif;
Expand Down
4 changes: 2 additions & 2 deletions dlang.org.ddoc
Expand Up @@ -61,8 +61,8 @@ _=

DDLINK=$(LINK2 $1.html, $3)
DDOC_BACKQUOTED = $(D $0)
DDOC_SUMMARY = $(PC summary, $0)
DDOC_DESCRIPTION = $(PC description, $0)
DDOC_SUMMARY = $(DIVC summary, $0)
DDOC_DESCRIPTION = $(DIVC description, $0)
DDOC_AUTHORS = $(DDOCKEYVAL Authors, $0)
DDOC_BUGS = $(DDOCKEYVAL Bugs, $0)
DDOC_COPYRIGHT = $(DDOCKEYVAL Copyright, $0)
Expand Down

0 comments on commit 65f0e01

Please sign in to comment.