Skip to content

Commit 3c8a16a

Browse files
committed
Final doc tidy up and bug fix before 0.7
- gcc errors were not parsing correctly. It's still not perfect due to forward slash, but better than nothing.
1 parent 8fd1227 commit 3c8a16a

File tree

7 files changed

+161
-114
lines changed

7 files changed

+161
-114
lines changed

PythonScript/src/ConsoleDialog.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -808,7 +808,7 @@ bool ConsoleDialog::parseGCCErrorLine(LineDetails *lineDetails)
808808
}
809809

810810
// Unescaped invalid char, so it's not a gcc error
811-
if (!isEscaped && !isValidFilenameChar(lineDetails->line[pos]))
811+
if (!(isEscaped || lineDetails->line[pos] == '/' || isValidFilenameChar(lineDetails->line[pos]) || (lineDetails->line[pos] == ':' && pos == 1)))
812812
{
813813
styleState = SS_EXIT;
814814
break;

PythonScript/src/CreateWrapper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ def writeScintillaEnums(f, out):
494494
for name in f.enums:
495495
v = f.enums[name]
496496
if v.get('Values'):
497-
out.write('.. _{0}:\n.. class:{0}\n\n{0}\n{1}\n\n'.format(name.upper(), '-' * len(name)))
497+
out.write('{0}\n{1}\n\n.. _{0}:\n.. class:: {0}\n\n'.format(name.upper(), '-' * len(name)))
498498

499499
for val in v['Values']:
500500
out.write('.. attribute:: {0}.{1}\n\n'.format(name.upper(), val[0][len(v['Value']):].upper()))

docs/source/console.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Console Object
5454

5555
.. attribute:: Console.editor
5656

57-
An :ref:``Editor`` object for the console window. This enables you to change colours, styles, even add and remove text if
57+
An :ref:`Editor` object for the console window. This enables you to change colours, styles, even add and remove text if
5858
you so wish, from the console window. Note that the console window is always left in a read-only state, so in order to change
5959
text, you would need to first perform a ``console.editor.setReadOnly(0)``. Any subsequent ``console.write`` or ``console.writeError``
6060
calls will make the console read-only again.

0 commit comments

Comments
 (0)