how do you stop it from stripping...

User 2706435 Photo


Ambassador
444 posts

What about making a separate page looking exactly like you want the code to appear - then in your main page, iframe that other page into it from a html, and make the iframe responsive buy going to http://www.embedresponsively.com
User 187934 Photo


Senior Advisor
20,271 posts

Vicky wrote:
Just as an update: I downloaded version 1.5 as a separate copy. I loaded my project into it, made a new code block, and saw the same thing. I also made a brand new project with nothing but a single html element in it. I pasted the code block in and saw the same thing. It strips white-space every time. I'm starting to wonder if there's a bug in the Mac version.

No, I think the stripping of the white space is by design.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2826111 Photo


Registered User
9 posts

Eric Rohloff wrote:

No, I think the stripping of the white space is by design.


If that's the case then how did they get it to not strip whitespace here? (code near bottom of page) http://www.coffeecup.com/help/articles/ … ogle-maps/

edit to add: Further, if this is by design, then they're breaking the semantics of <pre> and <code>, which I think should be a problem. <pre> especially, since it is supposed to preserve whitespace. So that's why I'm not so sure this is by design. I think, instead, that there's something I'm doing wrong, and I can't figure out what it is.

BIll G wrote:
What about making a separate page looking exactly like you want the code to appear - then in your main page, iframe that other page into it from a html, and make the iframe responsive buy going to http://www.embedresponsively.com


I will probably try that. Thanks.
User 2706435 Photo


Ambassador
444 posts

<pre style="font-size: 14px; white-space: pre;">
User 2706435 Photo


Ambassador
444 posts

Forum is breaking when I try to edit in time allotted I think because of the code I have in post...

I do not see any styling in the html page or in the user css files when doing a search for the white-space style in the user css sheets and in the html file. Perhaps the linked script and its link styling css are breaking a default.

When I post the code in my previous post - with the <code> tag, your content with random white space, linebreaks, and then close the tags in the proper order, it appears to work for me. Try doing an inline style in the html element with your code.
User 187934 Photo


Senior Advisor
20,271 posts

That seem to work for me also Bill.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 379556 Photo


Registered User
1,603 posts

And it does for me, as mentioned in the second post in this thread.

May I be forgiven for suggesting that Vicky test the matter again by
(a) copying all the content between (but not, of course, including) the body tags at https://vickyb.ca/results/scanCode.html
(b) pasting that content into an HTML element in a new project file
(c) previewing (using 'Preview on...') or exporting to see the result.

For item (a) above, I used the browser's facility to view the code and copied from that.

I have tested in that way, and it works for me

Frank.
User 2826111 Photo


Registered User
9 posts

BIll G wrote:
and then close the tags in the proper order


You must have looked at it before I fixed it. :lol: I was so annoyed when I saw that.

Frank Cook wrote:
And it does for me, as mentioned in the second post in this thread.

May I be forgiven for suggesting that Vicky test the matter again by
(a) copying all the content between (but not, of course, including) the body tags at https://vickyb.ca/results/scanCode.html
(b) pasting that content into an HTML element in a new project file
(c) previewing (using 'Preview on...') or exporting to see the result.

For item (a) above, I used the browser's facility to view the code and copied from that.

I have tested in that way, and it works for me

Frank.


Sure I can try that. The code that's in there right now was hand-edited to get the < and > to show up so if you were seeing that and thinking something had happened to it, that's what happened to it. (luckily all the code I want to post is short so it isn't annoying to hand-edit it) I was also going to remove all the \r\n and put in <br> and see if that does anything.

The real problem, though, is that this should be working fine without so much effort. It works for you guys, it worked for whomever made that tutorial...so why isn't it working for me? That's the mystery. Would it help if I posted a project? I can make one and throw it up there as a zip file.
User 2826111 Photo


Registered User
9 posts

OK, here is a brand new project I made in RSD 1.5, using a copy/pasted <pre><code> block from my other page that displays properly. This project does not produce a page that displays properly.

http://vickyb.ca/testProject.rsd.zip

And here is the output:
https://vickyb.ca/testProject_exported/ … _exported/
User 379556 Photo


Registered User
1,603 posts

That's good. It doesn't immediately resolve the problem, but I think it identifies what the problem is.

Probably the other contributors to this thread, like me, are using RSD2 beta version, which doesn't by default use the coffeegrinder framework, but will do so for editing projects created in RSD1.5.

I loaded into RSD2 beta a copy of a project I created in RSD 1.5 which used the coffeegrinder framework, reduced the copy project back to a blank page, and did the test I suggested. I got exactly the problem that Vicky did.

Since I use Windows, it's nothing to do with the fact that Vicky uses the Mac version. It seems to be the coffeegrinder framework. I would therefore suggest that Vicky go to the "Your support room" section of this website, advise the situation as shown in this post, and see whether the CoffeeCup team can help. In my experience their support is very quick and brilliant.

Frank

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.