View Single Post
Old 05-10-2016, 11:55 AM   #1
AlanHK
Guru
AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.
 
AlanHK's Avatar
 
Posts: 681
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
case change destroys links

I had a TOC with the text in all caps, and wanted to make it title case.

Original text:

Code:
 <div class="sgc-toc-level-1">
    <a href="../Text/chap-17.html#u2670f1c8-139b-4106-95f7-1eb90b10f75f">DISTINGUISHED PERSONS VISIT A TEMPLE PAVILION</a>
  </div>

  <div class="sgc-toc-level-1">
    <a href="../Text/chap-18.html#u28aca12c-1439-40d3-8bf3-796169f2fe9f">A BUDDHIST ABBOT SURPRISES A GUEST</a>
  </div>
In book view, I selected one entry and converted it, got:

Code:
  <div class="sgc-toc-level-1">
    <a href="../Text/chap-17.html#u2670f1c8-139b-4106-95f7-1eb90b10f75f">Distinguished Persons Visit A Temple Pavilion</a>
  </div>
Which was what I wanted, so I selected all the entries and applied the case change, and it looked fine. Then I looked at the code:

Code:
<div class="sgc-toc-level-1">
      <font color="#0000ee">Distinguished Persons Visit A Temple Pavilion</font>
    </div>

    <div class="sgc-toc-level-1">
      <font color="#0000ee">A Buddhist Abbot Surprises A Guest</font>
    </div>
The links are gone and replaced with a blue colouring.
And "undo" does not undo this. So I aborted and reopened.

In code view case change across a tag boundary just does nothing at all, not helpful, but at least not destructive like the above.

I know the work around: just do one at a time.


I don't know if it can be described as a bug, but to me this doesn't seem a good way for change case to work.
AlanHK is offline   Reply With Quote