[ewiki] table-formatting (ii)

Hello!

Mario, you were right. I had a space behind the last '|' in the line that 
wasn't rendered. Since it obviously wasn't intuitive for me to check for 
whitespaces at the end of the line, I guess that others run into the same 
problem, too. What do you think about the below addition, removing everything 
in a line after the last occurrence of a '|'?

around line 1787:
            #-- tables
            $line=substr($line,0,strrpos($line,'|'))  // **INSERT THIS**
            if (($c0 == "|") && ($line[strlen($line)-1] == "|")) {
            ...

Solong, Timm






Other related posts: