cancel
Showing results for 
Search instead for 
Did you mean: 

Rendering of code inside <pre></pre> tags is wrong.

Former Member
0 Kudos
89

Here's some JavaScript in a blog of mine in current SCN (screen grab):

Here is how it is rendered in the migrated version in the current beta (screen grab):

Too many blank lines!

The markup in the HTML editor is:

<pre>var contents = [
     { "Type": "Credit Limit", "Source": "Existing",   "Value": creditLimit },
     { "Type": "Credit Exposure",     "Source": "Existing",   "Value": creditExposure},
     { "Type": "Credit Exposure",     "Source": "This order", "Value": orderValue}
];
</pre>

These extra blank lines don't appear in the visual editor in either old or new SCN, only when it is rendered.

The blog in question is (old) and  UI5 charts in Personas - a business example - SAP Blogs (new).

Is this something that can be fixed? It affects many of my blogs (maybe I post too much code:-)

Steve.

Accepted Solutions (1)

Accepted Solutions (1)

Steffi_Warnecke
Active Contributor
0 Kudos

I can confirm that for a blog of mine:

current SCN: SAP IDM: Provisioning is stuck (yet again) - My checklist

new SCN: https://blogs.sap.com/2014/06/20/sap-idm-provisioning-is-stuck-yet-again-my-checklist/

A simple one-liner of SQL statement and the empty space around it keeps getting more.

Regards,

Steffi.

Steffi_Warnecke
Active Contributor
0 Kudos

Now I edited my blog in the beta and set the "preformatted text style" one the second and third sql code snippet (those were formatted with "paragraph") and the preview was okay and now the blog is shown ok, too.

@Steve: Did you tried edit & save on one of your blogs in the beta, too?

Former Member
0 Kudos

No, I haven't tried that. It would be a major pain to have to do it, since it affects quite a few of my blogs. Surely the migration process can get it right automatically?

But thanks for the hint. At least there's a workaround if a proper solution doesn't turn up!

Steve.

Steffi_Warnecke
Active Contributor
0 Kudos

Yes, I'd expect the migration to get that right, too. Not just for you, but for others as well, that use the code-tags. But it had problems with assigning the correct text style on some content, so I guess they are still working on that.

moshenaveh
Community Manager
Community Manager
0 Kudos

Hello,

This is a known issue: http://scn.sap.com/message/16721656#16721656

Thanks,

Moshe

Former Member
0 Kudos

Oops. Sorry. I should have searched before posting...

Thanks,

Steve.

moshenaveh
Community Manager
Community Manager
0 Kudos

No worries, that's what I'm here for.

Answers (0)