kai-xiong / redminewikiext

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

P tags wrap the divs outputted by Wiki_Extension #4

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Add a Footer or SideBar wikipage
2. Check the outputted code

What is the expected output? What do you see instead?
No <p> tags wrapping the <div> tags since this creates incorrect markup.

What version of the product are you using? On what operating system?
0.1.3

Please provide any additional information below.

Original issue reported on code.google.com by oub...@gmail.com on 20 Nov 2009 at 1:32

GoogleCodeExporter commented 9 years ago
Thanks.
You are right. It's a wrong html.
I checked my code today but I couldn't fix it. 

Redmine's wiki parser puts <p> and </p> tags into blank line automatically. 
Plugin
can't control it.

Original comment by haru.ii.a9i1e on 21 Nov 2009 at 6:56

GoogleCodeExporter commented 9 years ago
Textile has a habit of wrapping everything with paragraph tags. Not having seen 
how
the Textile in Rails work, the PHP version can be told not to use Textile 
through the
==no textile here== tags (or notextile. as seen on
http://textile.thresholdstate.com/). Therefor if you first Textileparse the 
include
and then add it with a notextile tag it should not wrap it.

This is oh so very theoretical since I've never wrote a single RoR line in my 
life. :)

Original comment by oub...@gmail.com on 23 Nov 2009 at 11:48

GoogleCodeExporter commented 9 years ago
I found out that Redmine uses RedCloth for Textile and it supports the 
notextile as
seen here, 
http://redcloth.org/textile/html-integration-and-escapement/#no-textile.

Original comment by oub...@gmail.com on 24 Nov 2009 at 3:51

GoogleCodeExporter commented 9 years ago
Hi oubee1.
Thanks for your support.

I fixed the code and committed to the repository. Wait for next release.

Original comment by haru.ii.a9i1e on 1 Dec 2009 at 3:21