I usually put a space before and after /, when indicating alternatives.
We review a module / theme per user.
Is it correct, or should I rewrite the sentence to remove those spaces?
We review a module/theme per user.
English Language & Usage Stack Exchange is a question and answer site for linguists, etymologists, and serious English language enthusiasts. It only takes a minute to sign up.Sign up to join this community
You should remove the spaces. Unless, of course, you are quoting a poem, in which case the slash indicates a line break:
We review a module
theme per user.
Wikipedia has more info:
There are usually no spaces either before or after a slash. Exceptions are in representing the start of a new line when quoting verse, or a new paragraph when quoting prose. The Chicago Manual of Style (at 6.112) also allows spaces when either of the separated items is a compound that itself includes a space: Our New Zealand / Western Australia trip. (Compare use of an en dash used to separate such compounds.) The Canadian Style: A Guide to Writing and Editing prescribes "No space before or after an oblique when used between individual words, letters or symbols; one space before and after the oblique when used between longer groups which contain internal spacing", giving the examples "n/a" and "Language and Society / Langue et société".
In print I would leave no space, but for online usage I bracket the "/" with spaces because it is a non-breaking character and results in huge, clunky amalgamations that take up a whole line, leaving the previous line with but a couple of words. This is the kind of break I mean:
If you wanted to use some long words, you could go the antidisestablishmentarianism/pneumonoultramicroscopicsilicovolcanoconiosis route.
The two long words won't break at a line end because of the slash, but will if the slash is surrounded by spaces.
I believe the correct usage is word/word unless you're writing a line break in a poem:
Shall I compare thee to a summer's day? / Thou art more lovely and more temperate: / Rough winds do shake the darling buds of May, / And summer's lease hath all too short a date:
Punctuation surrounding a slash is a matter of style. The Chicago Manual of Style, for example, allows for a space on either side of the slash when either of the separated items has a space itself. For your example a space on either side of the slash would be appropriate according to that style convention.
Regarding line breaks, you probably want the front space padding the slash to be a non-breaking space, as starting a new line with a slash would be jolting for a reader.
As a technical writer I need to edit content written by engineers. for some reason they have a tendency to use spaces before and after slashes, and I religiously remove them.
I have started rethinking my inflexibility in this matter as I believe there are times that spaces make the content more user friendly.
A case in point is either/or listings of terms that contain other symbols, for example "PMC_IO51 / XMC_IO_B-9". The spacing makes it clear that the slash is not part of either term.
Normally, no spaces should be used; however, placing a slash with no spaces between two long, polysyllabic words (common in technical writing) makes the sentence harder to scan. This could be one case where ignoring your style guide is justified.
Thank you for your interest in this question.
Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?