Fix gdlib
Description
Closes #756 (closed)
News snippet
Fix GDLib support when spacing is not defined.
Checklist
-
I have checked that my code follows the Octopus coding standards -
I have added tests for all the new features added in this request.