Hi,

if I enter the following quotation:

"''There are 10^11 stars in the galaxy. That used to be a huge number. But it's only a hundred billion. It's less than the national deficit! We used to call them astronomical numbers. Now we should call them economical numbers''".

I'm getting the following output:

<p>&quot;There are 10^11 stars in the galaxy. That used to be a huge number. But it's only a hundred billion. It's less than the national deficit! We used to call them astronomical numbers. Now we should call them economical numbers&quot;.</p>

The field "Author" contains just the unformatted name "Richard Feynman"; the output is a correct hyperlink to ../quotes/author/Richard+Feynman

Input in the "Citation" field:

zit. in [http://www.writersmugs.com/quotes.php?day=308 writersmugs.com]

Output:

<cite>zit. in writersmugs.com</cite>

Where "writersmugs.com" is a correct hyperlink to http://www.writersmugs.com/quotes.php?day=308.

Below those three field, I choose the input format; in my case, the default input format is "Mediawiki" (= Wikipedia style markup). The " from the quotation field is somehow converted to the entity &quot;; the formatting instruction to italicize the quotation ('') appears to be ignored. The hyperlink in the citation field is rendered correctly, but again a plaintext HTML entity (<cite>) is inserted into the output; thus this appears to be a mixture of the input filter and some other formatting instructions coming from elsewhere.

How do I correctly format those fields? To which of those three fields (Quote, Author, Citation) is the chosen input filter supposed to apply?

Thanks & greetings, -asb

CommentFileSizeAuthor
#2 quotes-formatting.png4.4 KBasb

Comments

nancydru’s picture

Status: Active » Fixed

In theme_quotes_quote, the chosen input filter is applied to all three fields, and to the bio if one is available. The citation field is also wrapped with <cite> tags, although I just noticed the wrapping occurs before the filtering, which means it could get stripped. Each of those fields is also included in a wrapper <div> for personalization.

I don't include the quoted text in quotation marks in any of my quotes. I just tried it with the "Filtered HTML" filter and it did not create the HTML entities, so your filter or WYSIWYG editor (which I hate) must be doing that.

I also tried including a link in the citation field and it worked fine. I have several bios with links and they all work.

asb’s picture

StatusFileSize
new4.4 KB

Hi,

just upgraded to Quotes [quotes-5.x-1.90], ran update.php, edited and reloaded the node; the formatting did not change. Is it really supposed to look this way (as in the attached screenshot)?

As mentioned above, I'm using MediaWiki style markup through the PEAR Wiki filter, not a WYSIWYG editor; I can't rearrange the Input format, because then the rest of the site breaks (sorting order: Code filter (-10), PEAR Wiki Filter (0), Line Break Converter (10)). If this can't be fixed where it happens (in the "Quotes" module), I'd prefer that my 3420 quotes nodes look broken and the ramaining 29242 nodes of other content types look well. However, a warning in the module's README.txt would be nice that the "Quotes" modul might not work (well) with Input filters other than "Filtered HTML".

Thanks & greetings, asb

nancydru’s picture

Well, you shouldn't see the HTML or entities. It works fine with all the filters I have used.

asb’s picture

Title: Formatting broken » Incomopatibility with PEAR Wiki Filter
Status: Fixed » Closed (won't fix)

Thanks,

adjusting the title to something more descripting and the status to "won't fix".

Greetings, -asb

nancydru’s picture

Title: Incomopatibility with PEAR Wiki Filter » Incompatibility with PEAR Wiki Filter

Perhaps opening an issue against that filter will help.

asb’s picture

Sadly, like so many Drupal projects, the PEAR Wiki Filter isn't maintained very well. The last D6 release (6.x-1.0-beta1) dates from 2008-Jan-01, the last official D5 release (5.x-1.1) dates from 2007-Mar-03 - that was almost two years ago. The project itself recommends to use Flexifilter which is availabe for D6 only as RC2, lacks most of PEAR Wiki Filter's functionality and isn't actively maintained, also. If this is a filter problem, it can't be solved. Let's finish this discussion at this point since there are dozends of similar and even much worse problems (e.g. missing migration path from D5/Amazontools to D6/Amazon, broken "gallery" functionality in the Image module, lots of other issues with PEAR wiki filter etc.)

Greetings, -asb

nancydru’s picture

I might be able to make some suggestions. Is the primary issue that the HTML entities are there, or that they are output at all? There are simple ways to deal with it either way. Does this filter do things that a filter isn't supposed to, like some formatting? If not, perhaps changing the default filter for Quotes would work (Filter by Node Type).