Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 22 additions & 1 deletion .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
branches: [ master ]

jobs:
build:
test-ubuntu-gcc:

runs-on: ubuntu-latest

Expand All @@ -19,3 +19,24 @@ jobs:
run: make
- name: make test
run: make test

test-windows-msys2-UCRT64:

runs-on: windows-latest

defaults:
run:
shell: msys2 {0}

steps:
- uses: msys2/setup-msys2@v2
with:
msystem: UCRT64
install: make mingw-w64-ucrt-x86_64-gcc
- uses: actions/checkout@v6
- name: configure
run: ./configure
- name: make
run: make
- name: make test
run: make test
2 changes: 1 addition & 1 deletion include/bibtool/resource.h
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ RSC_NEXT('p')
RscBoolean( "print.parentheses" , r_pp ,rsc_parentheses , false )
RscBoolean( "print.terminal.comma" , r_ptc ,rsc_print_tc , false )
RscBoolean( "print.use.tab" , r_put ,rsc_use_tabs , true )
RscBoolean( "print.wide.equal" , r_pwe ,rsc_print_we , true )
RscBoolean( "print.wide.equal" , r_pwe ,rsc_print_we , false )
RSC_NEXT('q')
RscBoolean( "quiet" , r_q ,rsc_quiet , false )
RSC_NEXT('r')
Expand Down
2 changes: 1 addition & 1 deletion include/bibtool/rsc.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
******************************************************************************/

#include <bibtool/symbols.h>

#warning ##RSC_BIBTOOL_DEFAULT
#ifdef RSC_INIT
#define RscNumeric(SYM,S,V,I) int V = I;
#define RscString(SYM,S,V,I) String V = (String)I;
Expand Down
6 changes: 4 additions & 2 deletions print.c
Original file line number Diff line number Diff line change
Expand Up @@ -449,11 +449,13 @@ static void print_equation(pre, lhs, rhs, align, fct)/* */
else if ( rsc_print_we && column > align - 2 ) /* */
{ PUTC(' '); } /* */
else if ( rsc_eq_right ) /* */
{ indent(align - (rsc_print_we ? 3: align_auto? 1 : 2), fct); }/* */
{ indent(align - ((rsc_print_we || !align_auto) ? 2 : 1), fct); }/* */
else if ( column < align || rsc_print_we ) /* */
{ PUTC(' '); } /* */
/* */
PUTS(rsc_print_we ? " = " : "="); /* */
PUTC('='); /* */
if ( rsc_print_we && column > align )
{ PUTC(' '); } /* */
line_breaking(SymbolValue(rhs), align, fct); /* */
} /*------------------------*/

Expand Down
Loading