Styling a field without having to put a space after it

I have been trying to put two fields, the part of the speech and the word, next to each other. When I tried to format the part of the speech by doing the following code and putting the word right after it:

< div class=mystyle1>{{Part of speech}}< /div>{{Word}}

It was displayed like this because of the divider:

n.
pencil

I want it to be displayed like this while the part of the speech keeps its formatting:

n. pencil

How can I do this? Thanks in advance.

You can use span tags which appear on the same line (if possible):

<span class=mystyle1>{{Part of speech}} </span>{{Word}}
1 Like