Git Product home page Git Product logo

Comments (15)

lainz avatar lainz commented on June 21, 2024 1

bgracontrols\test\test_bgrathemes\umain.lfm (original is in the repo)

this is the saved with the new code
umain.zip

Captura de pantalla 2024-01-21 062201

from bgracontrols.

lainz avatar lainz commented on June 21, 2024 1

@circular17, now it works perfectly =)

from bgracontrols.

circular17 avatar circular17 commented on June 21, 2024

Hello @dokkie8844

Thank you for the detailed explanation and patch. Your diagnostic and proposal seem sound. Normalizing the end of lines when saving would ensure that they are stable.

Thinking about the issue, we could go further in avoiding changes in LFM files by detecting the line ending when loading the configuration and use the same line ending when saving.

@lainz Hope you're doing alright. Are you available to handle this query? I can take care of it otherwise.

Regards

from bgracontrols.

lainz avatar lainz commented on June 21, 2024

Hi @circular17 , please take care of this.
Thanks.

from bgracontrols.

circular17 avatar circular17 commented on June 21, 2024

Ok I will try to add that to my todo list

from bgracontrols.

circular17 avatar circular17 commented on June 21, 2024

Hi @lainz and @dokkie8844

I've implemented the change. Though I cannot test it. Can you try and see if line ending are preserved?

Regards

from bgracontrols.

lainz avatar lainz commented on June 21, 2024

Hi @circular17 , I've tested it this way on Windows 11:

  • Download latest sources
  • Rebuild lazarus
  • Open a form previously saved with the old code
  • Move any non visual component and save the form

It produces changes in the SVG Image List... so for me as I undestand didn't work.

from bgracontrols.

circular17 avatar circular17 commented on June 21, 2024

Thanks @lainz for testing. Can you give more detail on the changes that happen?

from bgracontrols.

lainz avatar lainz commented on June 21, 2024

Not really. Is like a hex format I can't easily read it. Also takes a lot of time to load the form I've used to test (a big form full of stuff).

Maybe you can go back the code and create a form. Then test with the new code in a git repository to track changes?

Is what I did without good results... But maybe you can understand the changes in the lfm...

from bgracontrols.

circular17 avatar circular17 commented on June 21, 2024

Ok so you notice a change in the data that is generated. Can you provide the file before and after?

from bgracontrols.

lainz avatar lainz commented on June 21, 2024

Sorry is from a commercial application. I can't share.

from bgracontrols.

circular17 avatar circular17 commented on June 21, 2024

Ok. Maybe a test project if there is one already?

@dokkie8844 Can you help testing and debugging? The changes are on the dev-bgracontrols branch.

from bgracontrols.

circular17 avatar circular17 commented on June 21, 2024

Ah indeed there are some line endings that have been adapted, but within HTML. Ok this is in the string containing the SVG. It is an XML within the XML. I suppose it is because each SVG is stored as a TStringList. I am investigating...

from bgracontrols.

circular17 avatar circular17 commented on June 21, 2024

@lainz I've added a call to adapt the line breaks inside the SVGs as well. I suppose now it will be ok. Can you give it a try?

from bgracontrols.

circular17 avatar circular17 commented on June 21, 2024

Cool! Thank you so much for testing.

Well i guess we can consider the issue done!

Thank you @dokkie8844 for the request

from bgracontrols.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.