View Single Post
Old 10-01-2019, 04:15 PM   #344
Geremia
Addict
Geremia rocks like Gibraltar!Geremia rocks like Gibraltar!Geremia rocks like Gibraltar!Geremia rocks like Gibraltar!Geremia rocks like Gibraltar!Geremia rocks like Gibraltar!Geremia rocks like Gibraltar!Geremia rocks like Gibraltar!Geremia rocks like Gibraltar!Geremia rocks like Gibraltar!Geremia rocks like Gibraltar!
 
Posts: 259
Karma: 100000
Join Date: Oct 2012
Device: Calibre
Exclamation comments field hyperlinking issues

Quote:
Originally Posted by kovidgoyal View Post
Can you figure out some pattern to reproduce it?
For example, if the comments field is:
Code:
<div>
<p>This is an <em>italic </em>test link.</p></div>
and I select the three words "italic test link" and insert link in "Normal view", the HTML becomes:
Code:
<div>
<p>This is an <a href="https://www.mobileread.com/forums/">italic test link</a>.</p></div>
when it should be
Code:
<div>
<p>This is an <a href="https://www.mobileread.com/forums/"><em>italic </em>test link</a>.</p></div>
If the HTML is:
Code:
<div>
<p>Testing a link.</p></div>
and I select "link." in the "Normal view", it doesn't insert the link (at least not on the first try; sometimes it works afterwards). However, if I select "link", sometimes it does work, producing:
Code:
<div>
<p>Testing a <a href="https://www.mobileread.com/forums/">link</a>.</p></div>
Inserting a link on "hyperlink" of:
Code:
<div>
<p>a hy<strong>per</strong>link</p></div>
removes the formatting and sometimes doesn't insert link and sometimes does:
Code:
<div>
<p>a <a href="https://www.mobileread.com/forums/">hyperlink</a></p></div>
beta 3.99.9

Last edited by Geremia; 10-01-2019 at 04:23 PM.
Geremia is offline