google-code-export / fanficdownloader

Automatically exported from code.google.com/p/fanficdownloader
0 stars 0 forks source link

output css text-align:center not retained #35

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Are you using the CLI, web service or calibre plugin?
CLI, web version

What is the story URL?
http://www.fanfiction.net/s/3589409/1/

What is the output format you used?
html

What steps will reproduce the problem?
normal downloading

What is the expected output? What do you see instead?
The parts of the text that are centered on ffnet are aligned left on the output 
html.

What version of the product are you using? On what operating system?
4.4.28, ubuntu 12.04

Please provide any additional information below.
I have been using fanficdownloader only for a few days, and I have one last 
question (hopefully) about it. I noticed that, unless specifically specified as 
such on the output_css, no text element retains their alignment (and everything 
is aligned left). Not even <h1> or <h2>. 

Is that supposed to be this way, or am I missing something? Is there some way 
to compensate for it? 

Thank you! 

Original issue reported on code.google.com by amelie...@web.de on 13 Oct 2012 at 11:51

GoogleCodeExporter commented 9 years ago
FFDL strips out style, align, and most other tag attributes because otherwise 
the formatting just ends up too random and broken.

On fanfiction.net, if FFDL allows 'align' attributes for center, everything 
ends up centered because of a wrapping div tag with align="center" that depends 
on a style to make the p tags inside it left aligned again.  Try looking at 
ffnet sometime with javascript disabled--the styles are only included if 
javascript is run, which is a pretty big pain for a downloader.

So it's functioning as designed.

Original comment by retiefj...@gmail.com on 14 Oct 2012 at 1:07

GoogleCodeExporter commented 9 years ago
Aha, I see. Good to know. Just wanted to make sure I wasn't overlooking some 
very obvious and easy fix here. 

Thanks for clearing that up for me. :)

Original comment by amelie...@web.de on 14 Oct 2012 at 1:19