Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/lib/writer-html.cc
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ void HtmlWriter::handleDef(const Defect &def)
d->core.writeHeaderOnce(d->scanProps, d->plainTextUrl);

// HTML anchor
d->str << "<a name='def" << ++(d->defCnt) << "'/>";
d->str << "<a id='def" << ++(d->defCnt) << "'></a>";

d->str << "<b>Error: <span style='background: #C0FF00;'>"
<< HtmlLib::escapeTextInline(def.checker) << "</span>";
Expand All @@ -478,7 +478,7 @@ void HtmlWriter::handleDef(const Defect &def)
d->writeLinkToDetails(def);

// link to self
d->str << " <a href ='#def"
d->str << " <a href='#def"
<< d->defCnt << "'>[#def"
<< d->defCnt << "]</a>";

Expand Down
Loading