Fix accidental formatting in monospaced text #27
No reviewers
Labels
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Docs/defensive-coding-guide#27
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "literal-monospace-conversion"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Some monospaced text in the guide contains double underscores, which results in unintentional italicization (e.g., under Specific Programming Tasks > Processes > Accessing Environment Variables, second bullet point). When this occurs, we can use AsciiDoc's literal monospace syntax to make sure no additional formatting is applied.
Note that some of the changes have no impact on the rendered output, but prevent spurious italicization if another double underscore is added later.
It's kind of unfortunate how that syntax all shook out. It's also possible to get yourself in trouble when documenting pointers or arithmetic, since asterisks inside backticks will (under the right circumstances) also still trigger bold formatting.
Really, when writing about code in AsciiDoc, it's never wrong and not the worst idea to just always use literal monospace (
`+ ... +`
) syntax, Just In Case.But that can also feel like overkill, and this PR fixes the necessary/likely trouble spots. +1 from me.
Thanks!
Pull-Request has been merged by pbokoc