This project is read-only.
4
Vote

VS2010 Presentation Style misses line breaks in code examples using Firefox

description

Using the new beta presentation style VS2010 the code examples are displayed in a signle, very long line when using Firefox v6 and v12. Line breaks are correctly displayed when viewing the same documentation using the Internet Explorer v8.
The Presentation Style VS2005 works as expected in both browers.

comments

jbaehr wrote Jul 3, 2012 at 10:33 AM

The issue is caused by an additional inline style definition of the corresponding pre-Element. The inherited style from the branding css works correctly, so just removing the style attribute from the element fixes this problem for me.

wrote Jul 15, 2012 at 10:59 PM

cesarsouza wrote Jul 15, 2012 at 11:01 PM

@jbaehr I am experiencing the same problem under Chrome and Firefox, but oddly, not under IE. It seems IE is the only one which renders the page correctly.

By the way, I am not sure I completely understood the suggested workaround. Could you explain it further?

jbaehr wrote Jul 16, 2012 at 3:24 PM

There is no workaround (unless you consider manual post-processing as such). I've just hacked the resulting html to find the source of the problem. For a solution the implementation of the presentation style needs to be changed to omit the additional inline style information of the html pre that holds the code example.

blachniet wrote Jul 23, 2012 at 1:23 PM

Atrejoe proposes a different solution to this problem here: http://shfb.codeplex.com/workitem/32733. It worked well for me.

wrote Jul 23, 2012 at 1:25 PM

wrote Aug 16, 2012 at 2:30 PM

EWoodruff wrote Aug 16, 2012 at 8:32 PM

I removed the style element from the branding transformation as it didn't seem to serve any purpose and the code is formatted correctly without it as JBaehr noted in the related SHFB work item.

wrote Feb 22, 2013 at 1:39 AM