cancel
Showing results for 
Search instead for 
Did you mean: 

How to put a straight quote also straight apostrophe in SAP blogs

P281512
Participant
0 Kudos
480

I have seen many blogs where I encountered this confusion

“ ” instead of "     ‘ ’  instead of '

This does NOT happen in CODE
Happens ONLY in text outside CODE in main body
This is a cause of puzzled readers with SQLs etc outside code boxes;

This never happens in all text say in github!
In github README.md you get what you put.

Recently I realized that SAP blogs based on WordPress and
WordPress prefers curly quote and curly apostrophe unless CODE!
I used a suggestion to substitute the html decimal entities for " ' in body
BUT this reverts back to curly quotes when I want to edit next time
Please see my answer below with 2 Options

Accepted Solutions (1)

Accepted Solutions (1)

P281512
Participant
0 Kudos

When you need straight quotes and straight apostrophe as in SQLs Commands etc
you have 2 options
Option 1
Put your SQLs etc in code boxes
Code boxes do not do curly changes!

Option 2 - no code boxes
Copy your blog text temporarily in an external editor like Google Docs
that allows global search and replace and even regular expressions RE2.

Remember if you have chosen Option 2 you need to do the same operation each time you edit
Copy out -> twice global Search and place ->copy back

"'Answered myself!'"

Answers (0)