summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2014-09-01 16:55:36 +0200
committerRobin Watts <robin.watts@artifex.com>2014-09-02 10:16:35 +0100
commit84c616094639d38d076aba71bf8283b532f434f6 (patch)
tree1361ec0cfb833433bf6c0df0c80e76dc2f87cdfd /source
parent7d726b34666e5547a93f64f1dc1f161c5517e473 (diff)
downloadmupdf-84c616094639d38d076aba71bf8283b532f434f6.tar.xz
Clean some whitespace.
Diffstat (limited to 'source')
-rw-r--r--source/fitz/load-jpx.c2
-rw-r--r--source/fitz/output-pcl.c4
-rw-r--r--source/fitz/stext-paragraph.c6
-rw-r--r--source/fitz/svg-device.c2
4 files changed, 7 insertions, 7 deletions
diff --git a/source/fitz/load-jpx.c b/source/fitz/load-jpx.c
index 51950d4c..7cd36474 100644
--- a/source/fitz/load-jpx.c
+++ b/source/fitz/load-jpx.c
@@ -43,7 +43,7 @@ static OPJ_SIZE_T fz_opj_stream_read(void * p_buffer, OPJ_SIZE_T p_nb_bytes, voi
if (len < 0)
len = 0;
if (len == 0)
- return (OPJ_SIZE_T)-1; /* End of file! */
+ return (OPJ_SIZE_T)-1; /* End of file! */
if ((OPJ_SIZE_T)len > p_nb_bytes)
len = p_nb_bytes;
memcpy(p_buffer, sb->data + sb->pos, len);
diff --git a/source/fitz/output-pcl.c b/source/fitz/output-pcl.c
index eae5dad2..0eeab8d3 100644
--- a/source/fitz/output-pcl.c
+++ b/source/fitz/output-pcl.c
@@ -22,7 +22,7 @@
#define PCL_ANY_SPACING \
(PCL3_SPACING | PCL4_SPACING | PCL5_SPACING)
-/* Individual printer properties. Any subset of these may be included. */
+/* Individual printer properties. Any subset of these may be included. */
#define PCL_MODE_2_COMPRESSION 8 /* compression mode 2 supported */
/* (PCL 4) */
#define PCL_MODE_3_COMPRESSION 16 /* compression modes 2 & 3 supported */
@@ -491,7 +491,7 @@ fz_output_pcl(fz_output *out, const fz_pixmap *pixmap, fz_pcl_options *pcl)
/*
* Mode 2 Row compression routine for the HP DeskJet & LaserJet IIp.
* Compresses data from row up to end_row, storing the result
- * starting at compressed. Returns the number of bytes stored.
+ * starting at compressed. Returns the number of bytes stored.
* Runs of K<=127 literal bytes are encoded as K-1 followed by
* the bytes; runs of 2<=K<=127 identical bytes are encoded as
* 257-K followed by the byte.
diff --git a/source/fitz/stext-paragraph.c b/source/fitz/stext-paragraph.c
index 5704f3cf..11925f77 100644
--- a/source/fitz/stext-paragraph.c
+++ b/source/fitz/stext-paragraph.c
@@ -1177,9 +1177,9 @@ force_paragraph:
/* Simple line region analysis:
* For each line:
- * form a list of 'start/stop' points (henceforth a 'region mask')
- * find the normalised baseline vector for the line.
- * Store the region mask and baseline vector.
+ * form a list of 'start/stop' points (henceforth a 'region mask')
+ * find the normalised baseline vector for the line.
+ * Store the region mask and baseline vector.
* Collate lines that have compatible region masks and identical
* baseline vectors.
* If the collated masks are column-like, then split into columns.
diff --git a/source/fitz/svg-device.c b/source/fitz/svg-device.c
index c48c123d..f90557b5 100644
--- a/source/fitz/svg-device.c
+++ b/source/fitz/svg-device.c
@@ -326,7 +326,7 @@ svg_dev_text_as_paths_defs(fz_device *dev, fz_text *text, const fz_matrix *ctm)
{
int newmax = sdev->max_fonts * 2;
if (newmax == 0)
- newmax = 4;
+ newmax = 4;
sdev->fonts = fz_resize_array(ctx, sdev->fonts, newmax, sizeof(*sdev->fonts));
memset(&sdev->fonts[font_idx], 0, (newmax - font_idx) * sizeof(sdev->fonts[0]));
sdev->max_fonts = newmax;