Skip to content

Conversation

@arnav-makkar
Copy link
Contributor

Brief summary of changes

Remove line breaks from REDCap HTML fields when generating LINST output. The toLINST() method now strips all newline characters (\r\n, \r, \n) from field labels to ensure each LINST field stays on a single line as required by the LINST specification.

Link(s) to related issue(s)

Fixes aces#10238

The redcap2linst.php script was generating malformed LINST files when
REDCap fields contained HTML with line breaks. LINST format requires
exactly one line per field.

Previously, newline characters were being converted to <br /><br /> tags,
but actual newline characters still remained in the output, breaking the
LINST format.

This change removes all line break characters (\r\n, \r, \n) from field
labels when generating LINST output, ensuring each field stays on a
single line as required by the LINST specification.
@github-actions github-actions bot added Language: PHP PR or issue that update PHP code Module: redcap PR or issue related to redcap module labels Jan 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Language: PHP PR or issue that update PHP code Module: redcap PR or issue related to redcap module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Line breaks in REDCap to LINST for HTML fields

1 participant