hack: see comment
svn: r10892 original commit: 1f6007ce8b4213e2f402445745c9e37764ee31b4
This commit is contained in:
parent
e186bdee0f
commit
35ca52a88d
|
@ -755,10 +755,14 @@
|
|||
(render-flow* p part ri start-inline? #t))
|
||||
|
||||
(define/override (render-paragraph p part ri)
|
||||
`((p ,(if (styled-paragraph? p)
|
||||
`([class ,(styled-paragraph-style p)])
|
||||
`())
|
||||
,@(super render-paragraph p part ri))))
|
||||
;; HACK: for the search, we need to be able to render a `div'
|
||||
;; with an `id' attribute, `p' will probably work fine instead
|
||||
;; of `div' since it's a block element. Do this for now.
|
||||
(let ([contents (super render-paragraph p part ri)]
|
||||
[style (and (styled-paragraph? p) (styled-paragraph-style p))])
|
||||
(if (and (pair? style) (eq? (car style) 'div))
|
||||
`((div-hack ,(cdr style) ,@contents))
|
||||
`((p ,(if style `([class ,style]) `()) ,@contents)))))
|
||||
|
||||
(define/override (render-element e part ri)
|
||||
(cond
|
||||
|
|
Loading…
Reference in New Issue
Block a user