What is meta? ×
Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 128 Stack Exchange communities.

In this question:

Formatting a txt file of equations into the same format and then manipulating them for linear algebra calculations in Python

The three lines from the 'txt' file with three equations is indented properly but doesn't display as code:

-38 y1  +  35 y2  +  31 y3  = -3047

 11 y1  + -13 y2  + -34 y3  = 784

 34 y1  + -21 y2  +  19 y3  = 2949

They display properly here.

share|improve this question
    
That's funny.. I got them to work if I removed all the spaces and re-added them.. Or at least it worked in the preview. –  ɥʇǝS Apr 13 '13 at 3:35
    
Looks OK now ... –  mgilson Apr 13 '13 at 3:41
    
Thanks @Seth, your'e right. I tried that several times, including getting rid of the - at the front of the first line, dunno what was going on. Looks good though now as @mgilson says. –  askewchan Apr 13 '13 at 3:43

2 Answers 2

up vote 6 down vote accepted

This is what can be seen from the source (You need to view the source of the page):

    -38 y1  +  35 y2  +  31 y3  = -3047

    11 y1  + -13 y2  + -34 y3  = 784

    34 y1  + -21 y2  +  19 y3  = 2949

There are   (0x00A0) entities, which are NO-BREAK SPACE. The implementation only consider space (ASCII 32) (and tab character, from other observation) for code block.

In the source of revision 4:

    -38 y1  +  35 y2  +  31 y3  = -3047

    11 y1  + -13 y2  + -34 y3  = 784

    34 y1  + -21 y2  +  19 y3  = 2949
share|improve this answer
1  
I was just going to edit my answer for the same. +1 –  hims056 Apr 13 '13 at 3:58

I just edited it. What I did is just removed first four spaces from second and third line and added it again. And it looks good now. Looking at a third revision I think there might be a different character instead of space (ASCII 32).

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .