I would like to include a number of subfiles, each of which contains a single sentence, so that together they form a paragraph. However, the subfiles package makes each sentence into a separate paragraph, with a linebreak. Is there any way to edit the subfiles package so that when you include a subfile, it doesn't add a linebreak?
Rough example:
\begin{document}
\subfile{s1}\subfile{s2}\subfile{s3}
\end{document}
s1:
\documentclass[../main]{subfiles}
\begin{document}
This is my sentence.
\end{document}
Etc.

\begin{document}, the text, and\end{document}then there won't be any in the output? – julkarham Sep 16 '19 at 14:40\begin{document}and after\end{document}should be stripped? I don't think that this would be easy - however, for simple files like this it might be easier to just use\input{subfile}and not use thesubfilespackage at all. – Marijn Sep 17 '19 at 05:26