commit f3934d41205712d142b9c8a63940e9dd18a86c9f
parent 954c5e11f88b8b4ee5ed64e9c7ea5930dc69dfe5
Author: aabacchus <ben@bvnf.space>
Date: Mon, 5 Dec 2022 16:28:37 +0000
whitespace
Diffstat:
1 file changed, 12 insertions(+), 12 deletions(-)
diff --git a/xmhtml.c b/xmhtml.c
@@ -88,7 +88,7 @@ static char *current_page;
* Name: exitCB
* Return Type: void
* Description: callback for the exit button
-* In:
+* In:
* widget: button widget id
* client_data:unused
* call_data: unused
@@ -122,7 +122,7 @@ history_push(String href) {
perror("malloc");
exit(1);
}
-
+
h->prev = history_top;
history_top = h;
@@ -150,22 +150,22 @@ static String loadFile(String);
* Name: anchorCB
* Return Type: void
* Description: XmNactivateCallback for the XmHTML widget
-* In:
-* widget: widget id, in this case that of the HTML widget
+* In:
+* widget: widget id, in this case that of the HTML widget
* client_data:data registered with callback, unused
* cbs: XmHTML callback structure.
* Returns:
* nothing.
* Note:
-* We don't care what sort of url has been selected.
-* Setting the doit field to True instructs XmHTML to do it's own scrolling.
+* We don't care what sort of url has been selected.
+* Setting the doit field to True instructs XmHTML to do it's own scrolling.
* XmHTML is smart enought to only scroll to a location in this document if
* it really exists.
-* Setting the visited field also to True will cause XmHTML to render the
+* Setting the visited field also to True will cause XmHTML to render the
* selected anchor as being visited.
*****/
static void
-anchorCB(Widget widget, XtPointer client_data,
+anchorCB(Widget widget, XtPointer client_data,
XmHTMLAnchorCallbackStruct *cbs)
{
cbs->doit = True;
@@ -210,7 +210,7 @@ backCB(Widget widget, XtPointer client_data, XtPointer call_data) {
* Name: loadFile
* Return Type: String
* Description: loads the contents of the given file.
-* In:
+* In:
* filename: name of the file to load
* Returns:
* contents of the loaded file.
@@ -228,7 +228,7 @@ loadFile(String filename)
perror(filename);
return NULL;
}
-
+
if (S_ISDIR(sb.st_mode)) {
if (chdir(filename) != 0) {
perror(filename);
@@ -324,7 +324,7 @@ main(int argc, char **argv)
NULL);
/* add the exit callback */
- XtAddCallback(button, XmNactivateCallback, (XtCallbackProc)exitCB,
+ XtAddCallback(button, XmNactivateCallback, (XtCallbackProc)exitCB,
NULL);
back = XtVaCreateManagedWidget("Back",
@@ -373,7 +373,7 @@ main(int argc, char **argv)
}
/* add a simple anchor callback so XmHTML can jump to local anchors */
- XtAddCallback(html, XmNactivateCallback,
+ XtAddCallback(html, XmNactivateCallback,
(XtCallbackProc)anchorCB, NULL);
/* manage the form */