summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorAlfie John <alfie@alfie.wtf>2019-01-21 05:00:01 +0000
committerKhaled Hosny <khaledhosny@eglug.org>2019-01-21 10:39:48 +0200
commited62551d67ac5bb8dbfaf3fa5eb51013157b214a (patch)
treee8aebcc13f14249093136719c3f4ce1829da06cb /docs
parent3e332544db35ca08de767ecab01b489a9905c559 (diff)
Adding leading space for code example
Diffstat (limited to 'docs')
-rw-r--r--docs/usermanual-getting-started.xml16
1 files changed, 8 insertions, 8 deletions
diff --git a/docs/usermanual-getting-started.xml b/docs/usermanual-getting-started.xml
index 271b0d81..4ec26c61 100644
--- a/docs/usermanual-getting-started.xml
+++ b/docs/usermanual-getting-started.xml
@@ -275,14 +275,14 @@
</orderedlist>
<programlisting language="C">
for (i = 0; i &lt; glyph_count; ++i) {
- glyphid = glyph_info[i].codepoint;
- x_offset = glyph_pos[i].x_offset / 64.0;
- y_offset = glyph_pos[i].y_offset / 64.0;
- x_advance = glyph_pos[i].x_advance / 64.0;
- y_advance = glyph_pos[i].y_advance / 64.0;
- draw_glyph(glyphid, cursor_x + x_offset, cursor_y + y_offset);
- cursor_x += x_advance;
- cursor_y += y_advance;
+ &nbsp;&nbsp;glyphid = glyph_info[i].codepoint;
+ &nbsp;&nbsp;x_offset = glyph_pos[i].x_offset / 64.0;
+ &nbsp;&nbsp;y_offset = glyph_pos[i].y_offset / 64.0;
+ &nbsp;&nbsp;x_advance = glyph_pos[i].x_advance / 64.0;
+ &nbsp;&nbsp;y_advance = glyph_pos[i].y_advance / 64.0;
+ &nbsp;&nbsp;draw_glyph(glyphid, cursor_x + x_offset, cursor_y + y_offset);
+ &nbsp;&nbsp;cursor_x += x_advance;
+ &nbsp;&nbsp;cursor_y += y_advance;
}
</programlisting>
<orderedlist numeration="arabic">