Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No space before links in RichText parser #59

Closed
Sub6Resources opened this issue Feb 2, 2019 · 5 comments
Closed

No space before links in RichText parser #59

Sub6Resources opened this issue Feb 2, 2019 · 5 comments
Labels
bug Something isn't working medium-priority

Comments

@Sub6Resources
Copy link
Owner

@Sub6Resources I'm trying richText but there's no space for the first link
captura de ecra 2019-02-02 as 16 41 45

captura de ecra 2019-02-02 as 16 44 28

Originally posted by @peekpt in #55 (comment)

@Sub6Resources
Copy link
Owner Author

I'm unable to replicate this issue. Can you post your html?

@peekpt
Copy link

peekpt commented Feb 2, 2019

<div class="separator" style="clear: both; text-align: center;">
<a href="https://abertoatedemadrugada.com/2019/02/rmk-finaliza-mota-electrica-sem-eixo.html" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="790" data-original-width="1327" height="350" src="https://4.bp.blogspot.com/-ptldprzLHFA/XFUTyo-5SvI/AAAAAAAFPXY/Hr2bbfLobnYB3CVuN6dVXzIwGoLet240gCLcBGAs/s1600/bike.jpg" width="590" /></a></div>
<br />
Tal como nos automóveis, também no segmento das duas rodas não faltam interessados em estar na vanguarda para os modelos eléctricos, e a RMK tem uma das propostas mais radicais.<br />
<br />
<a name='more'></a>À primeira vista, a mota eléctrica da RMK até poderia parecer apenas uma mota igual a tantas outras... até ao momento em que se prestasse um pouco mais de atenção à roda traseira.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-_OnZrXtoSwo/XFUTyo_j70I/AAAAAAAFPXU/z3AhjFO7xooFIknAHPtbZpMNoFhizpaRgCLcBGAs/s1600/rmk-e2-prototype-3.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="667" data-original-width="1000" height="266" src="https://1.bp.blogspot.com/-_OnZrXtoSwo/XFUTyo_j70I/AAAAAAAFPXU/z3AhjFO7xooFIknAHPtbZpMNoFhizpaRgCLcBGAs/s400/rmk-e2-prototype-3.jpg" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://3.bp.blogspot.com/-SUw5qRO9SWU/XFUTypxpjgI/AAAAAAAFPXQ/8l02ZUFWRggeeGfwV0RdI59fZy5ZzSVpQCLcBGAs/s1600/RMK_EvNerds2.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="846" data-original-width="1200" height="281" src="https://3.bp.blogspot.com/-SUw5qRO9SWU/XFUTypxpjgI/AAAAAAAFPXQ/8l02ZUFWRggeeGfwV0RdI59fZy5ZzSVpQCLcBGAs/s400/RMK_EvNerds2.jpg" width="400" /></a></div>
<br />
Se noutros tempos as motas com mono-braço traseiro, e roda presa só de um dos lados, poderiam ser encaradas como "diferentes", esta RMK eleva a "diferença" a todo um outro nível. A <a href="https://evnerds.com/electric-vehicles/e-motorcycle-news/rmk-vehicles-e2-electric-motorcycle-exclusive-news/" rel="nofollow">RMK E2</a> usa uma roda traseira sem eixo, e com a curiosidade adicionado de ter o motor eléctrico integrado na própria roda.<br />
<br />
A RMK está a anunciar uma autonomia de 200 a 300 km - dependendo do estilo de condução - e uma velocidade máxima limitada electronicamente a 160 km/h. O motor é de 50 kW e fornece 320 Nm de binário instantâneo.<br />
<br />
... Agora só falta saber o preço, e esperar que alguém replique este sistema também na roda da frente, para ficarmos com uma mota com tracção às duas rodas (eu sei que já existem, mas sendo sem eixos, era mais um passo para podermos ter motas reais ao estilo Tron. :)<br />
<br />
<br />
<div style="text-align: center;">
<iframe allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen="" frameborder="0" height="315" src="https://www.youtube.com/embed/hwMEllVi0ds" width="560"></iframe><br /></div>

the issue part of html:
um outro nível. A <a href="https://evnerds.com/electric-vehicles/e-motorcycle-news/rmk-vehicles-e2-electric-motorcycle-exclusive-news/" rel="nofollow">RMK E2</a> usa uma roda traseira sem eixo

captura de ecra 2019-02-02 as 19 32 26

@Toubap
Copy link

Toubap commented Feb 24, 2019

Hi, same thing happens to me (btw thanks for you lib ;) )

@elsesiy
Copy link

elsesiy commented Mar 10, 2019

The issue is caused by the trimLeft here. Removing the lastString == '' check fixes the issue and doesn't seem to cause any other issues. Can you please verify this @Sub6Resources?

@Sub6Resources
Copy link
Owner Author

Yes, that does appear to be the issue. Thanks @elsesiy. The fix for this has been released in version 0.9.6. Let me know if you are still experiencing issues!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working medium-priority
Projects
None yet
Development

No branches or pull requests

4 participants