Tissi_2 Posted February 16, 2018 Share Posted February 16, 2018 (edited) Hi folks! Normally the <pre> tag should preserve whitespaces and "tab-spaces", but it does not. Is there a workaround for this issue, maybe with inline style? I do not want to use any ascii character or anything like that. I only want to use spaces and tabs. Thanks Tissi Edited February 16, 2018 by Tissi_2 Quote Link to comment
Tissi_2 Posted March 7, 2018 Author Share Posted March 7, 2018 Any statement from the technical department? Quote Link to comment
+niraD Posted March 7, 2018 Share Posted March 7, 2018 I generally avoid using tabs in <pre> elements anyway. They are (or at least they were, back in the stone age) rendered inconsistently on different systems. Quote Link to comment
Tissi_2 Posted March 7, 2018 Author Share Posted March 7, 2018 Thank you for your answer! But however, this is not a very satisfying answer. As GC is supporting the <pre> tag as a valid tag, I must presume that it is functioning as it should. That is NOT the case. Quote Link to comment
Moun10Bike Posted March 7, 2018 Share Posted March 7, 2018 Can you describe where you are seeing this issue? A simple test of some <pre> tags in a test listing shows that tabs are being retained. Quote Link to comment
Tissi_2 Posted March 7, 2018 Author Share Posted March 7, 2018 How about several tabs behind/in front of spaces? In a test listing they are reduced to only spaces. As I would like to make a listing with a "Whitespace" encrypted text, it is essential that all the spaces and tabs remain "as is". Quote Link to comment
Moun10Bike Posted March 7, 2018 Share Posted March 7, 2018 Can you point me to the example that is causing this issue? Quote Link to comment
Tissi_2 Posted March 7, 2018 Author Share Posted March 7, 2018 Sure! I can give you the link to the unpublished cache listing: https://coord.info/GC7JDCP Best regards! Quote Link to comment
Moun10Bike Posted March 7, 2018 Share Posted March 7, 2018 I see only spaces in the <pre> tag in that listing, which from what you have written I assume is the issue. I'm reasonably certain that this is due to the third-party markdown HTML interpreter that we use. I'm afraid that I don't have a solution for you. Quote Link to comment
+Viajero Perdido Posted March 7, 2018 Share Posted March 7, 2018 Maybe an HTML table would do the job? Quote Link to comment
Tissi_2 Posted March 7, 2018 Author Share Posted March 7, 2018 3 hours ago, Moun10Bike said: I see only spaces in the <pre> tag in that listing, which from what you have written I assume is the issue. I'm reasonably certain that this is due to the third-party markdown HTML interpreter that we use. I'm afraid that I don't have a solution for you. Yes, that is the issue. That is really disappointing! Can you do anything about this interpreter, because this interpreter causes several uncommon html behaviours? 2 hours ago, Viajero Perdido said: Maybe an HTML table would do the job? Can you give a code example? Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.