fbpx
Skip to content
Questions & AnswersCategory: QuestionsExtra space before and after <br>
Daniel asked 7 years ago
Hi, I have a problem translating content. The Multlingualizer js works okay, but when I tried it with real content it creates a lot of <br>, so extra space before and after the translation and these make the site not working properly. I mean I put:

....
Nuestro objetivo es ayudar al comprador y al vendedor en la transacción de inmuebles singulares situados en el Eixample barcelonés, en los plazos y términos acordados con nuestros clientes. Trabajamos con inmuebles ubicados en fincas regias de finales del siglo XIX y principios del XX que conservan elementos originales y característicos de su construcción y arquitectura.
..
Nuestro objetivo es ayudar al comprador y al vendedor en la transacción de inmuebles singulares situados en el Eixample barcelonés, en los plazos y términos acordados con nuestros clientes. Trabajamos con inmuebles ubicados en fincas regias de finales del siglo XIX y principios del XX que conservan elementos originales y característicos de su construcción y arquitectura.
..
Nuestro objetivo es ayudar al comprador y al vendedor en la transacción de inmuebles singulares situados en el Eixample barcelonés, en los plazos y términos acordados con nuestros clientes. Trabajamos con inmuebles ubicados en fincas regias de finales del siglo XIX y principios del XX que conservan elementos originales y característicos de su construcción y arquitectura.
..
Nuestro objetivo es ayudar al comprador y al vendedor en la transacción de inmuebles singulares situados en el Eixample barcelonés, en los plazos y términos acordados con nuestros clientes. Trabajamos con inmuebles ubicados en fincas regias de finales del siglo XIX y principios del XX que conservan elementos originales y característicos de su construcción y arquitectura.
....

And the result is something like this:

<br>
<br>
<br>
Nuestro objetivo es ayudar al comprador y al vendedor en la transacción de inmuebles singulares situados en el Eixample barcelonés, en los plazos y términos acordados con nuestros clientes. Trabajamos con inmuebles ubicados en fincas regias de finales del siglo XIX y principios del XX que conservan elementos originales y característicos de su construcción y arquitectura.
<br>
<br>
<br>
<br>
<br>
<br>

I attach the link of my website and you can see these problem in "Quienes somos" section.

Thanks and hope we can solve it.
Dani
1 Answers
Dave Hilditch Staff answered 7 years ago

Hi – if you are seeing this kind of issue, please be aware of the following:
If you hit CTRL+ENTER to create a newline, you are not creating a paragraph, you are adding a <br> tag (line break).
If you do this, it is impossible for the Multilingualizer to separate out those pieces of text.
So please, ensure you add a real paragraph by hitting ENTER without CTRL to create a paragraph block between the language markers – 4 dots must be on their own line in their own paragraph – you may then enter the first block of text (e.g. english) however you wish, including CTRL+ENTER line breaks but then when it comes to the 2 dot separator, hit a normal ENTER on the last line of your english text to close the paragraph and then enter the 2 dots. Then another normal ENTER then start your 2nd block of text.
 

Daniel replied 7 years ago

Hi Dave I thought for a moment that your answer would work but I tried it and it didn’t work with webflow. This is the result:

Some text in Spanish

intro

shift intro

control intro

Doesn’t matter what you press always is doing a .
Hope we can find a solution 🙁

Sam Addison Staff replied 7 years ago

Hi Daniel,

I’m not sure if you’ve made any progress since your last post, but in case not, you can try adding this css block to your site header:

<style>
br + br {
display: none;
}
</style>

Webflow seems to insist on using br tags as you’ve seen, which is somewhat annoying. The above fix does not remove all spaces, but should eliminate all but one phantom space in any given block. To come up with something more targetted and effective, I would need to see the html on your site first-hand.

Let me know if that helps.
-Sam

We use cookies

We use cookies for various things on our site, including our on-site chat bubble (if you use it), our comment forms (if you use them) and for session handling (if you log in).

Other than that, we use cookies to identify where traffic came from to help us understand which traffic turns into sales, we use a cookie for Google Analytics traffic analysis and we use a cookie to customise adverts for our own products we think you'll be interested in.

You can read more detail in our privacy policy page. Please click 'Accept' or 'Decline' to continue.