Modify

Opened 7 years ago

Closed 7 years ago

#15910 closed defect (fixed)

<code> looks like Normal Text in Help Browser

Reported by: Hb--- Owned by: team
Priority: normal Milestone: 18.02
Component: Core Version:
Keywords: help browser CSS formatting wiki Cc:

Description (last modified by Hb---)

Keystrokes, key=value pairs and URLs are formatted in the Wiki by enclosing them with ` characters (ASCII 96). TracWiki translates this to <code>. The alternative is {{{three curly brackets}}} which is translated to <preformat> in HTML.

The Wiki shows <code> in a monospaced font with a brown frame.

In the Online Help Browser both styles are missing. Therefore important keywords can't be distinguished from normal text, see wiki:/Help/ErrorMessages.

JOSM seems to strip some parts of the wiki page before displaying according to DevelopersGuide/HelpSystem

Expected result is that Online Help pages look them same as Wiki pages. So changing the wikis CSS is an option, but a bad one.

Attachments (2)

patch1.txt (1.2 KB ) - added by Hb--- 7 years ago.
tables.jpg (112.5 KB ) - added by Hb--- 7 years ago.
Table formatting, What do?

Download all attachments as: .zip

Change History (7)

comment:1 by Hb---, 7 years ago

Description: modified (diff)

comment:2 by Don-vip, 7 years ago

Milestone: 18.02

comment:3 by Don-vip, 7 years ago

Resolution: fixed
Status: newclosed

In 13416/josm:

fix #15910 - better display of <code> in HTML/CSS help browser. The border is not displayed but I can't figure why

by Hb---, 7 years ago

Attachment: patch1.txt added

comment:4 by Hb---, 7 years ago

Resolution: fixed
Status: closedreopened

Java does not show the border because <code> is an Inline-Element in HTML and Java does not understand display:block; to make a Block-element from it. So margin, border and padding cannot be used. Java 9 has the same limitations.

But a more colored background and a slightly larger font can be used to better distinguish <code> from normal text. Please see my suggestion in the Help Browser: Main Help (En or De) > HowTo (second link in content) > SandBox (last link on page).

Please see the patch. Perhaps font-size:108% is even suitable.

by Hb---, 7 years ago

Attachment: tables.jpg added

Table formatting, What do?

comment:5 by Don-vip, 7 years ago

Resolution: fixed
Status: reopenedclosed

In 13428/josm:

fix #15910 - better display of <code> in HTML/CSS help browser (patch by Hb---, modified)

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.