|
I try to remain positive, despite all of the evidence that points to the fact that I'm wasting my time.
".45 ACP - because shooting twice is just silly" - JSOP, 2010
- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
- When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013
|
|
|
|
|
Good, a steady hand helps with your aim.
|
|
|
|
|
In Texas, "gun control" is another term for "hitting what you aim at".
".45 ACP - because shooting twice is just silly" - JSOP, 2010
- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
- When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013
|
|
|
|
|
I will never forget the story you told about your yard sale (at least I think it was) and the guy who thought you (and your missus) were crazy. I think the story was the cop who attended was asking about your firearms and you said you practice gun control. When he asked what that meant, precisely, you said "I don't miss".
We admire you, John. From a distance. A safe distance.
cheers
Chris Maunder
|
|
|
|
|
I thought I'd try to find that thread, but something weird is happening.
I think the thread is "My Wife Is Funny", but when I find it with search, and click on any of the messages linked to the thread, if throws me at the most recent lounge post in fully expanded mode.
EDIT ================
The thread is actually here:
The Lounge[^]
I think my all-time favorite thread was when that guy insulted himself to save me the time/trouble. If I remember, it had something to do with a Quran article. Copious hilarity ensued... Sadly, the article appears to have been deleted, and with it, the message section.
Update on browser issues - the problem described above happens in IE11 and FireFox, but Chrome works.
".45 ACP - because shooting twice is just silly" - JSOP, 2010
- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
- When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013
modified 8-Nov-16 16:14pm.
|
|
|
|
|
|
Please delete my account. No longer needed.
|
|
|
|
|
Go to My Settings[^], and select the "Close my account" checkbox.
|
|
|
|
|
The code pasted in Unable to understand the behaviour of fgets[^] and other questions, seems to send the formatter into a drug induced frenzy. A number of ="" strings added where (I assume) there should be newlines. It never seems to happen with code that I post, so I wonder if it is some odd UTF character that is the culprit?
|
|
|
|
|
Near the end there is an unencoded <, causing the parser to think that the code is HTML and converting all following things to attributes.
Simple as that.
What do you get when you cross a joke with a rhetorical question?
The metaphorical solid rear-end expulsions have impacted the metaphorical motorized bladed rotating air movement mechanism.
Do questions with multiple question marks annoy you???
|
|
|
|
|
That is still not correct if the code is already within <pre> tags.
|
|
|
|
|
The formatter here can be very weird sometimes. I have seen this happen many times recently. It's caused by the new HTML sanitizer Chris is using.
What do you get when you cross a joke with a rhetorical question?
The metaphorical solid rear-end expulsions have impacted the metaphorical motorized bladed rotating air movement mechanism.
Do questions with multiple question marks annoy you???
|
|
|
|
|
Brisingr Aerowing wrote: It's caused by the new HTML sanitizer Which is exactly why I'm reporting the problem.
|
|
|
|
|
Richard MacCutchan wrote: formatter into a drug induced frenzy
We've changed the prescription. Open angle brackets inside PRE should be normal. Ish.
<hows this one for size>
cheers
Chris Maunder
|
|
|
|
|
Perfect.
|
|
|
|
|
When formatting a piece of code with <pre>, if the selection starts with spaces or taks, they are skipped and <pre> start after the spaces.
It is a bad behavior because it is common to paste indented pieces of code and skipping leading spaces and tabs is breaking the indentation.
Patrice
“Everything should be made as simple as possible, but no simpler.” Albert Einstein
|
|
|
|
|
Can you show me an example? I've done a little tweaking but I want to make sure I've addressed the specific issue.
cheers
Chris Maunder
|
|
|
|
|
Example, here I put the <pre> tag then paste the text
Left Rulegd ATTR001.PDST.MPDTMP01(A001PMTR) PROTY(01),BRPKY(A0Y)
A001PMTR 0 00AF 123456A11 2011/12/14 ENT tmp
Left Rulegd ATTR001.PDST.MPDTMP01(B001PRTY) PROTY(01),BRPKY(A0Y)
B001PRTY 1 0 12AB 7891P12 2010/08/25 AMP tmp
B234561 2 0 0 7891P12 2011/09/12 URTST tmp
Left Rulegd ATTR001.PDST.MPDTMP01(C001AMEF) PROTY(01),BRPKY(A0Y)
C001AMEF 0 PZ89 123456A11 2013/11/02 AMP tmp
Left Rulegd ATTR001.PDST.MPDTMP01(D001AAM) PROTY(01),BRPKY(A0Y)
D001AAM 0 OP25 123456A11 2009/02/14 ENT tmp
Example, here I paste the text then put the <pre> tag
Left Rulegd ATTR001.PDST.MPDTMP01(A001PMTR) PROTY(01),BRPKY(A0Y)
A001PMTR 0 00AF 123456A11 2011/12/14 ENT tmp
Left Rulegd ATTR001.PDST.MPDTMP01(B001PRTY) PROTY(01),BRPKY(A0Y)
B001PRTY 1 0 12AB 7891P12 2010/08/25 AMP tmp
B234561 2 0 0 7891P12 2011/09/12 URTST tmp
Left Rulegd ATTR001.PDST.MPDTMP01(C001AMEF) PROTY(01),BRPKY(A0Y)
C001AMEF 0 PZ89 123456A11 2013/11/02 AMP tmp
Left Rulegd ATTR001.PDST.MPDTMP01(D001AAM) PROTY(01),BRPKY(A0Y)
D001AAM 0 OP25 123456A11 2009/02/14 ENT tmp
See first line.
Can you have a look at this:
During the improvement I was doing, the new sanitizer nuked the question.
I think my correction was completing the first tag inside the first <pre> but I forgot to encode.
How can I stop javascript on aspx page before save the page as HTML[^]
Patrice
“Everything should be made as simple as possible, but no simpler.” Albert Einstein
|
|
|
|
|
Can you please try again? I've made some fixes.
cheers
Chris Maunder
|
|
|
|
|
Just tried.
Now it removes the first line leading spaces and tabs.
Previously, they were moved out of the <pre> block.
Patrice
“Everything should be made as simple as possible, but no simpler.” Albert Einstein
|
|
|
|
|
What the system is meant to do is outdent indented code evenly. So if every line is indented 4 spaces, it removes 4 spaces from every line. This fixes the issue where people paste deeply indented sections of code and all you see is loads of whitespace on the left and text on the right cut off.
eg. Each line here is entered originally with 4 leading spaces. Displayed, it's flushed left.
cheers
Chris Maunder
|
|
|
|
|
Hi Chris,
I think today's behavior is wrong and previous (a few months ago) was right.
In short, prior behavior was: apply <PRE> block around selection, no change in selection.
The problem is that today, when applying <PRE> the leading spaces, tabs and new lines are removed until the first symbol.
// manually crafted <pre> block
// example lines
// line with 4 leading spaces
// line with 4 leading spaces
// Exemple 1: paste code in existing block: Ok
<pre lang="c++"> // line with 4 leading spaces
// line with 4 leading spaces</pre>
<pre lang="c++">
// line with 4 leading spaces and a leading LF
// line with 4 leading spaces</pre>
// Exemple 2: paste code, select (including leading spaces and LF) and apply <pre>: wrong
<pre lang="c++">// line with 4 leading spaces
// line with 4 leading spaces</pre>
<pre lang="c++">// line with 4 leading spaces and a leading LF
// line with 4 leading spaces</pre>
// Exemple 1: paste code in existing block: Ok
// Exemple 2: paste code, select (including leading spaces and LF) and apply <pre>: wrong
Looks like you spend a lot of time on this and I don't see much change. Am I clear ? Is there a misunderstanding on the problem?
Patrice
“Everything should be made as simple as possible, but no simpler.” Albert Einstein
|
|
|
|
|
|
I linked to a new upload: The Lounge[^] linked to image[^] but it's giving intermittent 404's. Was working, then Brisingr Aerowing complained and I got 404ed, then it works again ... possibly related to the recent DB fun you've been having, but I thought I'd report it anyway.
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
Is it still happening?
Uploads are separate from any database issues. Generally what happens is one of the servers in the cluster decides not to store an upload, and within an hour or two our synch systems have brought things back in line.
cheers
Chris Maunder
|
|
|
|