Skip to content

Commit b2438cf

Browse files
committed
Pass user and host down to texgroup
1 parent 140bef5 commit b2438cf

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,8 @@ Note that this project **does not** adhere to [Semantic Versioning](https://semv
132132
- We removed unnecessary spacing and margin in the AutomaticFieldEditor. [#13792](https://github.com/JabRef/jabref/pull/13792)
133133
- We fixed an issue where global search auto-completion only worked after switching tabs. [#11428](https://github.com/JabRef/jabref/issues/11428)
134134
- We fixed an issue where hierarchical keywords would only show the parent keyword in the entry editor. [#11390](https://github.com/JabRef/jabref/issues/11390)
135+
- We fixed an issue where some file choosers regarding LaTeX-aux files did not open in the directory of the last selected file. [#8344](https://github.com/JabRef/jabref/issues/8344)
136+
- We fixed an issue where the LaTeX-File directory was not stored correctly in combination with the usage of Groups from aux files. [#13820](https://github.com/JabRef/jabref/issues/13820)
135137

136138
### Removed
137139

jablib/src/main/java/org/jabref/logic/importer/fileformat/BibtexParser.java

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,7 @@ private String determineNewLineSeparator() throws IOException {
181181
StringWriter stringWriter = new StringWriter(BibtexParser.LOOKAHEAD);
182182
int i = 0;
183183
int currentChar;
184-
do
185-
{
184+
do {
186185
currentChar = pushbackReader.read();
187186
stringWriter.append((char) currentChar);
188187
i++;
@@ -847,8 +846,7 @@ private String fixKey() throws IOException {
847846
char currentChar;
848847

849848
// Find a char which ends key (','&&'\n') or entryfield ('='):
850-
do
851-
{
849+
do {
852850
currentChar = (char) read();
853851
key.append(currentChar);
854852
lookaheadUsed++;
@@ -1134,8 +1132,7 @@ private void consume(char expected) throws IOException {
11341132

11351133
private boolean consumeUncritically(char expected) throws IOException {
11361134
int character;
1137-
do
1138-
{
1135+
do {
11391136
character = read();
11401137
} while ((character != expected) && (character != -1) && (character != 65535));
11411138

jablib/src/main/java/org/jabref/model/groups/TexGroup.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,13 @@ public void fileUpdated() {
116116
metaData.groupsBinding().invalidate();
117117
}
118118

119+
/**
120+
* Relativizes the given path to the file directories.
121+
* The getLatexFileDirectory must be absolute to correctly relativize because we do not have a bibdatabasecontext
122+
*
123+
* @param path The path to relativize
124+
* @return A relative path or the original one if it could not be made relative
125+
*/
119126
private Path relativize(Path path) {
120127
List<Path> fileDirectories = getFileDirectoriesAsPaths();
121128
return FileUtil.relativize(path, fileDirectories);

0 commit comments

Comments
 (0)