Fix accidental formatting in monospaced text #27

Merged
ryanlerch merged 1 commit from literal-monospace-conversion into master 2025-03-25 14:40:52 +00:00
Contributor

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.

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](https://docs.asciidoctor.org/asciidoc/latest/text/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.
Contributor

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.

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 ( <code>&#96;+ ... +&#96;</code> ) syntax, Just In Case. But that can also feel like overkill, and this PR fixes the necessary/likely trouble spots. +1 from me.
First-time contributor

Thanks!

Thanks!
First-time contributor

Pull-Request has been merged by pbokoc

Pull-Request has been merged by pbokoc
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Docs/defensive-coding-guide#27
No description provided.