2

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.

3
  • 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, 2013 at 3:35
  • Looks OK now ...
    – mgilson
    Apr 13, 2013 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, 2013 at 3:43

2 Answers 2

6

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
1
  • 1
    I was just going to edit my answer for the same. +1
    – Himanshu
    Apr 13, 2013 at 3:58
3

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).

You must log in to answer this question.

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