Skip to content

Commit 2f55f12

Browse files
committed
option -nolinks
git-svn-id: https://www.lri.fr/svn/demons/bibtex2html/trunk@335 6aee9057-109c-4a6d-8c93-4c3f535006fd
1 parent d0b9e3f commit 2f55f12

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

main.ml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* (enclosed in the file GPL).
1515
*)
1616

17-
(*i $Id: main.ml,v 1.57 2004-09-02 07:22:36 filliatr Exp $ i*)
17+
(*i $Id: main.ml,v 1.58 2004-09-16 09:39:16 filliatr Exp $ i*)
1818

1919
(*s Main module of bibtex2html. *)
2020

@@ -316,6 +316,7 @@ Usage: bibtex2html <options> [filename]
316316
-single produce a single page (with BibTeX input and output)
317317
-nodoc only produces the body of the HTML documents
318318
-nokeys do not print the BibTeX keys
319+
-nolinks do not print any web link
319320
-rawurl print URL instead of file type
320321
-heveaurl use HeVeA's \\url macro
321322
-noabstract
@@ -376,6 +377,8 @@ let parse () =
376377
print_abstract := false; parse_rec rem
377378
| ("-nokeywords" | "-no-keywords" | "--no-keywords") :: rem ->
378379
print_keywords := false; parse_rec rem
380+
| ("-nolinks" | "-no-links" | "--no-links") :: rem ->
381+
print_links := false; parse_rec rem
379382
| ("-nokeys" | "-no-keys" | "--no-keys") :: rem ->
380383
nokeys := true; parse_rec rem
381384
| ("-usekeys" | "-use-keys" | "--use-keys") :: rem ->

translate.ml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* (enclosed in the file GPL).
1515
*)
1616

17-
(*i $Id: translate.ml,v 1.66 2004-06-30 07:05:35 filliatr Exp $ i*)
17+
(*i $Id: translate.ml,v 1.67 2004-09-16 09:39:16 filliatr Exp $ i*)
1818

1919
(*s Production of the HTML documents from the BibTeX bibliographies. *)
2020

@@ -31,6 +31,7 @@ let title = ref ""
3131
let title_spec = ref false
3232
let print_abstract = ref true
3333
let print_keywords = ref true
34+
let print_links = ref true
3435
let print_header = ref true
3536
let print_footer = ref true
3637
let multiple = ref false
@@ -216,7 +217,9 @@ let display_links ch links =
216217
if r <> [] then output_string ch " | \n";
217218
display r
218219
in
219-
if links <> [] then begin output_string ch "[ "; display links end
220+
if !print_links && links <> [] then begin
221+
output_string ch "[ "; display links
222+
end
220223

221224
exception Caught
222225

translate.mli

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* (enclosed in the file GPL).
1515
*)
1616

17-
(*i $Id: translate.mli,v 1.7 2003-09-30 15:50:44 filliatr Exp $ i*)
17+
(*i $Id: translate.mli,v 1.8 2004-09-16 09:39:16 filliatr Exp $ i*)
1818

1919
(*s Production of the HTML documents from the BibTeX bibliographies. *)
2020

@@ -32,6 +32,7 @@ val title : string ref
3232
val title_spec : bool ref
3333
val print_abstract : bool ref
3434
val print_keywords : bool ref
35+
val print_links : bool ref
3536
val print_header : bool ref
3637
val print_footer : bool ref
3738
val multiple : bool ref

0 commit comments

Comments
 (0)