Skip to content

Commit 5e848a7

Browse files
committed
-linebreak
git-svn-id: https://www.lri.fr/svn/demons/bibtex2html/trunk@362 6aee9057-109c-4a6d-8c93-4c3f535006fd
1 parent e8742ef commit 5e848a7

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

CHANGES

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11

22
o macro \H (Hungarian umlauts)
3+
o new option -linebreak to insert a linebreak between an entry and its links
34

45
Version 1.82, 07/06/2006
56
========================

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.59 2006-05-12 16:05:02 filliatr Exp $ i*)
17+
(*i $Id: main.ml,v 1.60 2006-08-25 12:02:06 filliatr Exp $ i*)
1818

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

@@ -332,6 +332,7 @@ Usage: bibtex2html <options> [filename]
332332
do not print the abstracts (if any)
333333
-nokeywords
334334
do not print the keywords (if any)
335+
-linebreak add a linebreak between an entry and its links
335336
-noheader do not print the header (bibtex2html command)
336337
-nofooter do not print the footer (bibtex2html web link)
337338
-noexpand do not expand abbreviations in the BibTeX output
@@ -404,6 +405,8 @@ let parse () =
404405
i*)
405406
| ("-heveaurl" | "-hevea-url" | "--hevea-url") :: rem ->
406407
Latexscan.hevea_url := true; parse_rec rem
408+
| ("-linebreak" | "--linebreak") :: rem ->
409+
linebreak := true; parse_rec rem
407410
| ("-noheader" | "-no-header" | "--no-header") :: rem ->
408411
print_header := false; parse_rec rem
409412
| ("-nofooter" | "-no-footer" | "--no-footer") :: rem ->

translate.ml

Lines changed: 3 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.72 2006-05-15 09:45:53 filliatr Exp $ i*)
17+
(*i $Id: translate.ml,v 1.73 2006-08-25 12:02:06 filliatr Exp $ i*)
1818

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

@@ -45,6 +45,7 @@ let bibentries_file = ref ""
4545
let title_url = ref false
4646
let use_label_name = ref false
4747
let use_keys = ref false
48+
let linebreak = ref false
4849
let note_fields = ref ([] : string list)
4950
let abstract_name = ref "Abstract"
5051

@@ -397,7 +398,7 @@ let one_entry_summary ch biblio (_,b,((_,k,f) as e)) =
397398
output_string ch "\n";
398399
new_column ch;
399400
latex2html ch b;
400-
(*Html.open_balise ch "br /";*)
401+
if !linebreak then Html.open_balise ch "br /";
401402
output_string ch "\n";
402403

403404
if !multiple then

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.9 2006-05-12 16:05:02 filliatr Exp $ i*)
17+
(*i $Id: translate.mli,v 1.10 2006-08-25 12:02:06 filliatr Exp $ i*)
1818

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

@@ -43,6 +43,7 @@ val bib_entries : bool ref
4343
val input_file : string ref
4444
val output_file : string ref
4545
val use_label_name : bool ref
46+
val linebreak : bool ref
4647

4748
type table_kind = Table | DL | NoTable
4849
val table : table_kind ref

0 commit comments

Comments
 (0)