Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ID DownloadScreen: User feedback: something (fee_waiver_request_download) #43

Open
MPLP-Docassemble opened this issue Jul 8, 2024 · 5 comments

Comments

@MPLP-Docassemble
Copy link

   
Question ID DownloadScreen
Details The first line of each address (plaintiff, defendant, both lawyers) is indented a bit from the rest so it looks like this:

Kim Cramer
15 S. Washington
Suite 102
Ypsi, etc.
Variable being sought | fee_waiver_request_download
Package version | 0.3
Filename | docassemble.FeeWaiverRequest:data/questions/fee_waiver_request.yml

@normon66
Copy link
Collaborator

I've noticed this oddity before and it goes down to base docassemble functionality.

@ekressmiller - do you happen to have any insight on why it was done that way?

@ekressmiller
Copy link
Collaborator

Hmmm, I hadn't noticed this before, but now I see. So if we have multiple inputs being added in a single PDF field, the first one gets indented. In this example it happens with the phone number. Are we talking about the same phenomenon?

- plaintiffs_address_block: |
    % if user_ask_role == "plaintiff":
    ${ users[0].address_block() } 
    ${ users[0].phone_number }
    % elif user_ask_role == "defendant":
    ${ other_parties[0].address_block() } 
    ${ other_parties[0].phone_number }
    % endif

image

I can think of some workarounds (like separating the PDF fields and/or using address_block(), but that does seem kind of buggy. Can you confirm if I'm correctly understanding the issue and then I can ask on Slack?

@normon66
Copy link
Collaborator

normon66 commented Jul 24, 2024

How I interpreted Kim's finding, as with what I've seen in the past, is how address.block() puts a space at the beginning of the city/state/zip line. This appears to come directly from the block() function in al_general.py:
image

If the standard two-space indents are used when populating the field in an attachment block, the first line actually appears indented since it takes the spaces literally:
image

If the indents are removed from the attachment block, we see how the CSZ line is indented [from the block() function]:
image

It seems like the workaround for this scenario is to use a single-space indent. This way, the street line and phone number pick up the single space from the attachment block and the CSZ line picks up a single space from the block() function.
image

Does this help / make sense? @ekressmiller

@ekressmiller
Copy link
Collaborator

Yes, thanks, that's interesting. Do you think it makes sense to flag to the AL folks? I guess if that space weren't there in al_general.py you'd still have to be conscious of your spacing in the attachment block since it's changing things based on the amount of indent.

But a 1-space indent is an unusual thing to have to do.

@normon66
Copy link
Collaborator

normon66 commented Aug 1, 2024

Per today's call: @ekressmiller - yes, please see if the AL folks or Monday crew have any insight or feedback on this. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants