summaryrefslogtreecommitdiff
path: root/libdocument/ev-document.c
diff options
context:
space:
mode:
authorLaurent Napias <[email protected]>2019-06-29 10:43:23 +0200
committerraveit65 <[email protected]>2019-07-01 17:07:40 +0200
commitaa24676651f8bd3e8b434f72d5aac98e84c0867d (patch)
tree37693766ecb4733c6061dcc2ddc26954fab5ca01 /libdocument/ev-document.c
parent6741c5db1e5c48c01b25bb7900dc40d48552925d (diff)
downloadatril-aa24676651f8bd3e8b434f72d5aac98e84c0867d.tar.bz2
atril-aa24676651f8bd3e8b434f72d5aac98e84c0867d.tar.xz
Remove trailing whitespaces
Diffstat (limited to 'libdocument/ev-document.c')
-rw-r--r--libdocument/ev-document.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/libdocument/ev-document.c b/libdocument/ev-document.c
index e7f59ded..c074b3b2 100644
--- a/libdocument/ev-document.c
+++ b/libdocument/ev-document.c
@@ -203,7 +203,7 @@ ev_document_fc_mutex_trylock (void)
* @error: a #GError location to store an error, or %NULL
*
* Loads @document from @uri.
- *
+ *
* On failure, %FALSE is returned and @error is filled in.
* If the document is encrypted, EV_DEFINE_ERROR_ENCRYPTED is returned.
* If the backend cannot load the specific document, EV_DOCUMENT_ERROR_INVALID
@@ -229,7 +229,7 @@ ev_document_load (EvDocument *document,
if ( !g_strcmp0 (ev_file_get_mime_type(uri,TRUE,&err),"application/epub+zip") )
document->iswebdocument=TRUE ;
-
+
retval = klass->load (document, uri, &err);
if (!retval) {
if (err) {
@@ -255,7 +255,7 @@ ev_document_load (EvDocument *document,
priv->uri = g_strdup (uri);
priv->n_pages = _ev_document_get_n_pages (document);
-
+
for (i = 0; i < priv->n_pages; i++) {
/*
@@ -263,13 +263,13 @@ ev_document_load (EvDocument *document,
* We are however geeneralising the scenario by considering epub as a type of web document.
* FIXME: Labels, or bookmarks though, can be done.
*/
-
+
EvPage *page = ev_document_get_page (document, i);
gdouble page_width = 0;
gdouble page_height = 0;
EvPageSize *page_size;
gchar *page_label;
-
+
if ( document->iswebdocument == FALSE ) {
_ev_document_get_page_size (document, page, &page_width, &page_height);
}
@@ -278,7 +278,7 @@ ev_document_load (EvDocument *document,
page_width = 800;
page_height= 600;
}
-
+
if (i == 0) {
priv->uniform_width = page_width;
priv->uniform_height = page_height;
@@ -298,9 +298,9 @@ ev_document_load (EvDocument *document,
priv->uniform_height != page_height)) {
/* It's a different page size. Backfill the array. */
int j;
-
+
priv->page_sizes = g_new0 (EvPageSize, priv->n_pages);
-
+
for (j = 0; j < i; j++) {
page_size = &(priv->page_sizes[j]);
page_size->width = priv->uniform_width;
@@ -361,7 +361,7 @@ ev_document_load (EvDocument *document,
* @error: a #GError location to store an error, or %NULL
*
* Saves @document to @uri.
- *
+ *
* Returns: %TRUE on success, or %FALSE on error with @error filled in
*/
gboolean
@@ -780,7 +780,7 @@ EvDocumentInfo *
ev_document_info_copy (EvDocumentInfo *info)
{
EvDocumentInfo *copy;
-
+
g_return_val_if_fail (info != NULL, NULL);
copy = g_new0 (EvDocumentInfo, 1);
@@ -793,7 +793,7 @@ ev_document_info_copy (EvDocumentInfo *info)
copy->creator = g_strdup (info->creator);
copy->producer = g_strdup (info->producer);
copy->linearized = g_strdup (info->linearized);
-
+
copy->creation_date = info->creation_date;
copy->modified_date = info->modified_date;
copy->layout = info->layout;