Thread: regex question
View Single Post
Old 11-21-2014, 10:23 AM   #8
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,133
Karma: 60406498
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by Paulie_D View Post
As a 'coder'of sorts, (primarily web) I would tell anyone that using the break tag for spacing is poor practise.

I'm not saying it doesn't have it's place but using it for spacing is not recommended. That's what margins/padding are for.

This

Code:
  <h1 class="center"><a href="Section003.xhtml#start">Test</a><br/>

  Some sub header</h1>
Should be replaced with this

Code:
  <h1 class="center"><a href="Section003.xhtml#start">Test</a></h1>

  <h2 class="center">Some sub header</h2>
It's certainly more semantic.

Whether this has an specific relevance to e-publishing is perhaps questionable but 'poor' code is something to be noted even if we choose to use it for own own reasons.

Understand I'm not running anyone down for it...just expressing one man's opinion.
It may be 'proper' coding, bet it fails the Auto-TOC job

Test
Some Sub header
(both are essentially the same location)

is not what is desired in a TOC, especially on a smaller screen
theducks is offline   Reply With Quote