Modify

Opened 6 years ago

Closed 6 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--- 6 years ago.
tables.jpg (112.5 KB) - added by Hb--- 6 years ago.
Table formatting, What do?

Download all attachments as: .zip

Change History (7)

comment:1 Changed 6 years ago by Hb---

Description: modified (diff)

comment:2 Changed 6 years ago by Don-vip

Milestone: 18.02

comment:3 Changed 6 years ago by Don-vip

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

Changed 6 years ago by Hb---

Attachment: patch1.txt added

comment:4 Changed 6 years ago by Hb---

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.

Changed 6 years ago by Hb---

Attachment: tables.jpg added

Table formatting, What do?

comment:5 Changed 6 years ago by Don-vip

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.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.