mirror of
https://git.code.sf.net/p/zint/code
synced 2025-05-27 21:44:13 -04:00
gs1_lint.h: update to latest gs1-format-spec.txt;
fix some bugs in gen_gs1_lint.php
This commit is contained in:
parent
f5f363b22f
commit
41a05077bc
3 changed files with 86 additions and 98 deletions
|
@ -165,11 +165,11 @@ foreach ($spec_ais as $spec => $ais) {
|
|||
}
|
||||
if (is_array($ai)) {
|
||||
$this_s = $ai[0];
|
||||
$this_e = $ai[0];
|
||||
$this_e = $ai[1];
|
||||
} else {
|
||||
$this_s = $this_e = $ai;
|
||||
}
|
||||
if ($this_s === $prev_e + 1) {
|
||||
if ($this_s === $prev_e + 1 && $this_e - $prev_s < 100) { // Confine to batches of 100
|
||||
$tmp_ais[$cnt - 1] = array($prev_s, $this_e);
|
||||
} else {
|
||||
$tmp_ais[] = $ai;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue